62 Commits

Author SHA1 Message Date
Ben Siraphob 869d641281 treewide: replace stdenv.is* with stdenv.hostPlatform.is* 2026-05-10 10:06:35 -07:00
Ulysses Zhan b1b5c88cd8 love: fix on darwin 2026-03-18 22:20:47 -07:00
pancaek f4bc7f3fa0 love_11: move icon to spec-compliant location 2026-02-15 19:12:25 -08:00
quantenzitrone 7d8132a92c treewide: remove references to the xorg namespace in pkgs (automated)
this creates some eval errors that will be fixed in the next commit

done with the following script:

```fish
\#!/usr/bin/env fish

set packagesjson (nix eval --impure --json --expr '
let
  lib = import ./lib;
in
import pkgs/servers/x11/xorg/default.nix (lib.mapAttrs (
  name: _:
  if name == "lib" then
    lib
  else if name == "config" then
    { allowAliases = false; }
  else
    name
) (__functionArgs (import pkgs/servers/x11/xorg/default.nix))) { }
' | jq)

set one (grep '^    [A-Za-z0-9_-]*$' pkgs/servers/x11/xorg/default.nix | string trim | string replace -r '$' Z | sort | string sub -e -1)
set two (grep '^  [A-Za-z0-9_-]* = [A-Za-z0-9_-]*;$' pkgs/servers/x11/xorg/default.nix | cut -d= -f1 | string trim | string replace -r '$' Z | sort | string sub -e -1)

for arg in $one $two
    set oname $arg
    set nname (echo $packagesjson | jq -r .$oname)

    if test $nname = null
        echo (set_color red)warn:(set_color normal) unknown package xorg.$oname >&2
        continue
    end

    echo $oname "->" $nname

    # replace basic xorg.$name references
    for file in (rg -F "xorg.$oname" --files-with-matches pkgs)
        # special cases
        sd -F "$oname = xorg.$oname;" "$nname = $nname;" $file

        # replace
        sd -F "xorg.$oname" "$nname" $file

        # fixup function arguments

        # prevent duplicate function args
        if grep -E " ($oname|$nname),\$" $file >/dev/null
            continue
        end

        if grep 'xorg\..' $file >/dev/null # case1: there is more so we can't just remove the function arg

            if grep ' xorg,$' $file >/dev/null
                sd ' xorg,$' " xorg,
                $nname," $file

            else if grep ' xorg ? .*,$' $file >/dev/null
                sd 'xorg( ? .*),$' "xorg\$1,
                $nname," $file

            else
                sd -F 'xorg,' "$nname,
                xorg," $file
            end

        else # case there is no more xorg..* so we can just replace the function arg
            sd 'xorg(| ? .*),.*$' "$nname," $file
        end
    end
end

nix fmt
```
2026-01-25 22:28:09 +01:00
kuba 578702242a love: fix Darwin segfault and RPATH issues by using CMake build 2025-12-25 23:37:20 -06:00
DannyDannyDanny 4233839108 love2d: add Darwin platform support
- Add conditional buildInputs for Linux vs Darwin platforms
- Use lua5_1 instead of luajit on Darwin per upstream recommendation
- Update platforms list to include Darwin
- Fix libtool bundle/dylib linking issues on Darwin
- Patch macOS function calls with stub implementations
- Add postFixup to correct dylib path references

Fixes #369476

Note: Build is non-deterministic due to libtool script modification,
but this is a known limitation for Darwin support.
2025-09-21 15:35:03 +02:00
Emily f7be490488 love_{0_10,11}: drop unused libdevil dependency
Unused upstream since 2014; see
<https://github.com/love2d/love/commit/eca8c17a693e85635b043353e431dcb9d5012e75>.
2025-09-16 16:55:16 +01:00
K900 f42e00d66e Merge remote-tracking branch 'origin/master' into staging-next 2025-04-08 10:29:26 +03:00
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
K900 b3146d4446 Merge remote-tracking branch 'origin/master' into staging-next 2025-04-07 21:21:10 +03:00
Pol Dellaiera 65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
Sergei Trofimovich c4ccaa6168 love_0_10: add missing xorg.libX11 depend
SDL2 intentionally dropped xorg.libX11 propagated build depend.
This broke `love_0_10` as:

    In file included from modules/window/sdl/Window.cpp:43:
    /nix/store/nhq38i6s7zyhaa4l9csp5d1f1hyfzdqa-sdl2-compat-2.32.52-dev/include/SDL2/SDL_syswm.h:68:10: fatal error: X11/Xlib.h: No such file or directory
       68 | #include <X11/Xlib.h>

Let's add the dependency to `love_0_10` instead.
2025-04-04 21:13:47 +01:00
Sergei Trofimovich d80c7374a6 love: add mixxing xorg.libX11 depend
SDL2 intentionally dropped xorg.libX11 propagated build depend.
This broke `love` as:

    In file included from modules/window/sdl/Window.cpp:43:
    /nix/store/nhq38i6s7zyhaa4l9csp5d1f1hyfzdqa-sdl2-compat-2.32.52-dev/include/SDL2/SDL_syswm.h:68:10: fatal error: X11/Xlib.h: No such file or directory
       68 | #include <X11/Xlib.h>

Let's add the dependency to `love` instead.
2025-04-02 10:49:23 +01:00
Silvan Mosberger 667d42c00d treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev 57b193d8dd
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:27:17 +01:00
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
7c6f434c 829be7cc82 Merge pull request #272230 from r-ryantm/auto-update/love
love: 11.4 -> 11.5
2023-12-06 09:47:50 +00:00
R. Ryantm 0fd06ab97f love: 11.4 -> 11.5 2023-12-05 09:29:53 +00:00
Peder Bergebakken Sundt f41aba3739 treewide: remove unreferenced patch files
Found with `fd \\.patch$ pkgs/ -x bash -c 'rg -F "{/}" pkgs/ -q || echo {}'`
2023-12-01 06:11:20 +01:00
Artturin f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Philipp Bartsch 35681340d1 Revert "love: 0.10.2 -> 11.4"
There are supposed to be different versions of love.

- 0.10.2 in 0.10.nix
- 11.4 in 11.nix

This reverts commit e8662b6688.
2023-02-16 20:03:17 +01:00
Ben Siraphob 21faf9fc29 treewide: move autoconf, automake to nativeBuildInputs 2022-03-30 20:17:24 -05:00
R. Ryantm e8662b6688 love: 0.10.2 -> 11.4 2022-02-04 18:04:26 -08:00
Jörg Thalheim 1ba023e76b love_0_9: drop 2022-01-16 07:15:14 +01:00
Jörg Thalheim 51b69623db love_0_7: drop 2022-01-16 07:14:40 +01:00
Jörg Thalheim 0b087a8cbe love_0_8: drop 2022-01-16 07:13:36 +01:00
wackbyte f45e079999 love: updates, fetch from GitHub, refactor name to pname + version, etc
- love_0_9: 0.9.1 -> 0.9.2
- love_11: 11.3 -> 11.4
- Updated the src of each package to fetch from GitHub rather than
  Bitbucket as the repository moved
- Changed name to pname + version (#103997)
- Moved 11.1.nix to 11.nix to fit the others and because the version is
  no longer 11.1
- Changed all the homepage links from http to https just because
- love_0_9 is still broken unfortunately
2022-01-15 00:01:58 -05:00
Felix Buehler 7678aa30b4 pkgs/development: rename name to pname&version 2021-11-30 21:32:28 +01:00
Ben Siraphob 001c0cbe54 pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00
Michael Reilly 84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Robin Gloster f9f46dc327 treewide: NIX_*_FLAGS -> string 2019-12-31 00:15:46 +01:00
Robin Gloster 981ae25113 treewide: NIX_*_COMPILE -> string 2019-12-31 00:07:21 +01:00
adisbladis c9d8624ccd treewide: Get rid of libGLU_combined 2019-11-18 20:10:43 +00:00
R. RyanTM aabf8498d3 love_11: 11.2 -> 11.3 2019-11-02 05:50:48 -07:00
Linus Heckemann 5aa4b19946 treewide: mark some broken packages as broken
Refs:
e6754980264fe927320d5ff2dbd24ca4fac9a160
1e9cc5b9844ef603fe160e9f671178f96200774f
793a2fe1e8bb886ca2096c5904e1193dc3268b6d
c19cf65261639f749012454932a532aa7c681e4b
f6544d618f30fae0bc4798c4387a8c7c9c047a7c
2019-10-08 17:14:26 +02:00
Aaron Andersen ef114315ca love_0_8: fix broken build 2019-09-10 20:57:12 -04:00
volth 7b8fb5c06c treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00
volth 08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
ysander b74113e193 Add dependency and patch files (refs: #65786) 2019-08-04 18:02:47 +02:00
Michael Raskin 5256cb8353 love_11: fix hash 2018-12-17 17:15:28 +01:00
R. RyanTM 24b1161604 love_11: 11.1 -> 11.2
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/love/versions
2018-12-15 03:38:59 -08:00
Michael Raskin ec198337c4 love_11: init at 11.1 2018-05-07 23:58:24 +02:00
Alexander V. Nikolaev 0acec7e984 treewide: transition mesa to libGLU_combined 2018-02-24 17:06:49 +02:00
John Ericson ed14223f8c treewide: Manual fix more pkg-config build-inputs 2017-09-21 15:49:54 -04:00
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00
Vladimír Čunát d7501b986a luajit: 2.1.0-beta2 -> 2.1.0-beta3
The removal of `luaL_reg` alias caused lots of breakage.
Only sysdig and knot-resolver needed (also) other changes.
2017-05-02 14:00:45 +02:00
Michael Raskin b2fcf9fec5 love_0_10: 0.10.1 -> 0.10.2 2017-02-13 12:49:31 +01:00
Tuomas Tynkkynen cc7c9f5676 treewide: Make explicit that 'dev' output of SDL is used 2016-08-23 03:26:46 +03:00