lol

treewide: replace substituteAll with replaceVars (part 3)

Driving #237216 forward.

+110 -169
+2 -3
pkgs/by-name/ac/accountsservice/package.nix
··· 2 lib, 3 stdenv, 4 fetchurl, 5 - substituteAll, 6 pkg-config, 7 glib, 8 shadow, ··· 36 37 patches = [ 38 # Hardcode dependency paths. 39 - (substituteAll { 40 - src = ./fix-paths.patch; 41 inherit shadow coreutils; 42 }) 43
··· 2 lib, 3 stdenv, 4 fetchurl, 5 + replaceVars, 6 pkg-config, 7 glib, 8 shadow, ··· 36 37 patches = [ 38 # Hardcode dependency paths. 39 + (replaceVars ./fix-paths.patch { 40 inherit shadow coreutils; 41 }) 42
+2 -3
pkgs/by-name/al/alvr/package.nix
··· 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 - substituteAll, 6 nix-update-script, 7 pkg-config, 8 autoAddDriverRunpath, ··· 59 }; 60 61 patches = [ 62 - (substituteAll { 63 - src = ./fix-finding-libs.patch; 64 ffmpeg = lib.getDev ffmpeg; 65 x264 = lib.getDev x264; 66 })
··· 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 + replaceVars, 6 nix-update-script, 7 pkg-config, 8 autoAddDriverRunpath, ··· 59 }; 60 61 patches = [ 62 + (replaceVars ./fix-finding-libs.patch { 63 ffmpeg = lib.getDev ffmpeg; 64 x264 = lib.getDev x264; 65 })
+2 -3
pkgs/by-name/ap/appstream-glib/package.nix
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 - substituteAll, 6 docbook_xml_dtd_42, 7 docbook_xsl, 8 fontconfig, ··· 74 ]; 75 76 patches = [ 77 - (substituteAll { 78 - src = ./paths.patch; 79 pngquant = "${pngquant}/bin/pngquant"; 80 }) 81 ];
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 + replaceVars, 6 docbook_xml_dtd_42, 7 docbook_xsl, 8 fontconfig, ··· 74 ]; 75 76 patches = [ 77 + (replaceVars ./paths.patch { 78 pngquant = "${pngquant}/bin/pngquant"; 79 }) 80 ];
+2 -3
pkgs/by-name/cc/ccache/package.nix
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 - substituteAll, 6 binutils, 7 asciidoctor, 8 cmake, ··· 54 # Darwin. 55 # Additionally, when cross compiling, the correct target prefix 56 # needs to be set. 57 - (substituteAll { 58 - src = ./fix-objdump-path.patch; 59 objdump = "${binutils.bintools}/bin/${binutils.targetPrefix}objdump"; 60 }) 61 ];
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 + replaceVars, 6 binutils, 7 asciidoctor, 8 cmake, ··· 54 # Darwin. 55 # Additionally, when cross compiling, the correct target prefix 56 # needs to be set. 57 + (replaceVars ./fix-objdump-path.patch { 58 objdump = "${binutils.bintools}/bin/${binutils.targetPrefix}objdump"; 59 }) 60 ];
+2 -3
pkgs/by-name/cm/cmake/package.nix
··· 1 { lib 2 , stdenv 3 , fetchurl 4 - , substituteAll 5 , buildPackages 6 , bzip2 7 , curlMinimal ··· 75 ++ lib.optional stdenv.hostPlatform.isDarwin ./006-darwin-always-set-runtime-c-flag.diff 76 # On platforms where ps is not part of stdenv, patch the invocation of ps to use an absolute path. 77 ++ lib.optional (stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isFreeBSD) ( 78 - substituteAll { 79 - src = ./007-darwin-bsd-ps-abspath.diff; 80 ps = lib.getExe ps; 81 }) 82 ++ [
··· 1 { lib 2 , stdenv 3 , fetchurl 4 + , replaceVars 5 , buildPackages 6 , bzip2 7 , curlMinimal ··· 75 ++ lib.optional stdenv.hostPlatform.isDarwin ./006-darwin-always-set-runtime-c-flag.diff 76 # On platforms where ps is not part of stdenv, patch the invocation of ps to use an absolute path. 77 ++ lib.optional (stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isFreeBSD) ( 78 + replaceVars ./007-darwin-bsd-ps-abspath.diff { 79 ps = lib.getExe ps; 80 }) 81 ++ [
+4 -7
pkgs/by-name/fl/flatpak/package.nix
··· 46 python3, 47 shared-mime-info, 48 socat, 49 - substituteAll, 50 systemd, 51 testers, 52 valgrind, ··· 84 patches = [ 85 # Hardcode paths used by tests and change test runtime generation to use files from Nix store. 86 # https://github.com/flatpak/flatpak/issues/1460 87 - (substituteAll { 88 - src = ./fix-test-paths.patch; 89 inherit 90 coreutils 91 gettext ··· 98 }) 99 100 # Hardcode paths used by Flatpak itself. 101 - (substituteAll { 102 - src = ./fix-paths.patch; 103 p11kit = "${p11-kit.bin}/bin/p11-kit"; 104 }) 105 ··· 235 ''; 236 237 passthru = { 238 - icon-validator-patch = substituteAll { 239 - src = ./fix-icon-validation.patch; 240 inherit (builtins) storeDir; 241 }; 242
··· 46 python3, 47 shared-mime-info, 48 socat, 49 + replaceVars, 50 systemd, 51 testers, 52 valgrind, ··· 84 patches = [ 85 # Hardcode paths used by tests and change test runtime generation to use files from Nix store. 86 # https://github.com/flatpak/flatpak/issues/1460 87 + (replaceVars ./fix-test-paths.patch { 88 inherit 89 coreutils 90 gettext ··· 97 }) 98 99 # Hardcode paths used by Flatpak itself. 100 + (replaceVars ./fix-paths.patch { 101 p11kit = "${p11-kit.bin}/bin/p11-kit"; 102 }) 103 ··· 233 ''; 234 235 passthru = { 236 + icon-validator-patch = replaceVars ./fix-icon-validation.patch { 237 inherit (builtins) storeDir; 238 }; 239
+2 -3
pkgs/by-name/fo/formatter/package.nix
··· 9 pkg-config, 10 pantheon, 11 python3, 12 - substituteAll, 13 glib, 14 gtk3, 15 dosfstools, ··· 33 }; 34 35 patches = [ 36 - (substituteAll { 37 - src = ./fix-paths.patch; 38 ext4 = "${e2fsprogs}/bin/mkfs.ext4"; 39 exfat = "${exfat}/bin/mkfs.exfat"; 40 fat = "${dosfstools}/bin/mkfs.fat";
··· 9 pkg-config, 10 pantheon, 11 python3, 12 + replaceVars, 13 glib, 14 gtk3, 15 dosfstools, ··· 33 }; 34 35 patches = [ 36 + (replaceVars ./fix-paths.patch { 37 ext4 = "${e2fsprogs}/bin/mkfs.ext4"; 38 exfat = "${exfat}/bin/mkfs.exfat"; 39 fat = "${dosfstools}/bin/mkfs.fat";
+3 -5
pkgs/by-name/gd/gdm/package.nix
··· 3 stdenv, 4 fetchurl, 5 fetchpatch, 6 - substituteAll, 7 meson, 8 ninja, 9 pkg-config, ··· 35 36 let 37 38 - override = substituteAll { 39 - src = ./org.gnome.login-screen.gschema.override; 40 icon = "${nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake-white.svg"; 41 }; 42 ··· 105 }) 106 107 # Change hardcoded paths to nix store paths. 108 - (substituteAll { 109 - src = ./fix-paths.patch; 110 inherit 111 coreutils 112 plymouth
··· 3 stdenv, 4 fetchurl, 5 fetchpatch, 6 + replaceVars, 7 meson, 8 ninja, 9 pkg-config, ··· 35 36 let 37 38 + override = replaceVars ./org.gnome.login-screen.gschema.override { 39 icon = "${nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake-white.svg"; 40 }; 41 ··· 104 }) 105 106 # Change hardcoded paths to nix store paths. 107 + (replaceVars ./fix-paths.patch { 108 inherit 109 coreutils 110 plymouth
+2 -3
pkgs/by-name/gl/glib-networking/package.nix
··· 2 stdenv, 3 lib, 4 fetchurl, 5 - substituteAll, 6 meson, 7 ninja, 8 nixosTests, ··· 33 }; 34 35 patches = [ 36 - (substituteAll { 37 - src = ./hardcode-gsettings.patch; 38 gds_gsettings_path = glib.getSchemaPath gsettings-desktop-schemas; 39 }) 40
··· 2 stdenv, 3 lib, 4 fetchurl, 5 + replaceVars, 6 meson, 7 ninja, 8 nixosTests, ··· 33 }; 34 35 patches = [ 36 + (replaceVars ./hardcode-gsettings.patch { 37 gds_gsettings_path = glib.getSchemaPath gsettings-desktop-schemas; 38 }) 39
+2 -3
pkgs/by-name/gn/gnome-control-center/package.nix
··· 2 fetchurl, 3 lib, 4 stdenv, 5 - substituteAll, 6 accountsservice, 7 adwaita-icon-theme, 8 colord, ··· 82 }; 83 84 patches = [ 85 - (substituteAll { 86 - src = ./paths.patch; 87 gcm = gnome-color-manager; 88 inherit glibc tzdata shadow; 89 inherit cups networkmanagerapplet;
··· 2 fetchurl, 3 lib, 4 stdenv, 5 + replaceVars, 6 accountsservice, 7 adwaita-icon-theme, 8 colord, ··· 82 }; 83 84 patches = [ 85 + (replaceVars ./paths.patch { 86 gcm = gnome-color-manager; 87 inherit glibc tzdata shadow; 88 inherit cups networkmanagerapplet;
+2 -3
pkgs/by-name/gn/gnome-desktop/package.nix
··· 2 lib, 3 stdenv, 4 fetchurl, 5 - substituteAll, 6 pkg-config, 7 libxslt, 8 ninja, ··· 44 }; 45 46 patches = lib.optionals stdenv.hostPlatform.isLinux [ 47 - (substituteAll { 48 - src = ./bubblewrap-paths.patch; 49 bubblewrap_bin = "${bubblewrap}/bin/bwrap"; 50 inherit (builtins) storeDir; 51 })
··· 2 lib, 3 stdenv, 4 fetchurl, 5 + replaceVars, 6 pkg-config, 7 libxslt, 8 ninja, ··· 44 }; 45 46 patches = lib.optionals stdenv.hostPlatform.isLinux [ 47 + (replaceVars ./bubblewrap-paths.patch { 48 bubblewrap_bin = "${bubblewrap}/bin/bwrap"; 49 inherit (builtins) storeDir; 50 })
+2 -3
pkgs/by-name/gn/gnome-initial-setup/package.nix
··· 2 stdenv, 3 lib, 4 fetchurl, 5 - substituteAll, 6 dconf, 7 gettext, 8 meson, ··· 45 }; 46 47 patches = [ 48 - (substituteAll { 49 - src = ./0001-fix-paths.patch; 50 inherit tzdata; 51 tecla = gnome-tecla; 52 })
··· 2 stdenv, 3 lib, 4 fetchurl, 5 + replaceVars, 6 dconf, 7 gettext, 8 meson, ··· 45 }; 46 47 patches = [ 48 + (replaceVars ./0001-fix-paths.patch { 49 inherit tzdata; 50 tecla = gnome-tecla; 51 })
+2 -3
pkgs/by-name/gn/gnome-pomodoro/package.nix
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 - substituteAll, 6 meson, 7 ninja, 8 pkg-config, ··· 36 patches = [ 37 # Our glib setup hooks moves GSettings schemas to a subdirectory to prevent conflicts. 38 # We need to patch the build script so that the extension can find them. 39 - (substituteAll { 40 - src = ./fix-schema-path.patch; 41 inherit pname version; 42 }) 43 ];
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 + replaceVars, 6 meson, 7 ninja, 8 pkg-config, ··· 36 patches = [ 37 # Our glib setup hooks moves GSettings schemas to a subdirectory to prevent conflicts. 38 # We need to patch the build script so that the extension can find them. 39 + (replaceVars ./fix-schema-path.patch { 40 inherit pname version; 41 }) 42 ];
+2 -3
pkgs/by-name/gn/gnome-session/package.nix
··· 2 fetchurl, 3 lib, 4 stdenv, 5 - substituteAll, 6 meson, 7 ninja, 8 pkg-config, ··· 47 }; 48 49 patches = [ 50 - (substituteAll { 51 - src = ./fix-paths.patch; 52 gsettings = "${glib.bin}/bin/gsettings"; 53 dbusLaunch = "${dbus.lib}/bin/dbus-launch"; 54 bash = "${bash}/bin/bash";
··· 2 fetchurl, 3 lib, 4 stdenv, 5 + replaceVars, 6 meson, 7 ninja, 8 pkg-config, ··· 47 }; 48 49 patches = [ 50 + (replaceVars ./fix-paths.patch { 51 gsettings = "${glib.bin}/bin/gsettings"; 52 dbusLaunch = "${dbus.lib}/bin/dbus-launch"; 53 bash = "${bash}/bin/bash";
+2 -3
pkgs/by-name/gn/gnome-settings-daemon/package.nix
··· 1 { 2 stdenv, 3 lib, 4 - substituteAll, 5 buildPackages, 6 fetchurl, 7 meson, ··· 54 # https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/202 55 ./add-gnome-session-ctl-option.patch 56 57 - (substituteAll { 58 - src = ./fix-paths.patch; 59 inherit tzdata; 60 }) 61 ];
··· 1 { 2 stdenv, 3 lib, 4 + replaceVars, 5 buildPackages, 6 fetchurl, 7 meson, ··· 54 # https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/202 55 ./add-gnome-session-ctl-option.patch 56 57 + (replaceVars ./fix-paths.patch { 58 inherit tzdata; 59 }) 60 ];
+2 -3
pkgs/by-name/gn/gnome-settings-daemon46/package.nix
··· 1 { 2 stdenv, 3 lib, 4 - substituteAll, 5 fetchurl, 6 meson, 7 ninja, ··· 51 # https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/202 52 ./add-gnome-session-ctl-option.patch 53 54 - (substituteAll { 55 - src = ./fix-paths.patch; 56 inherit tzdata; 57 }) 58 ];
··· 1 { 2 stdenv, 3 lib, 4 + replaceVars, 5 fetchurl, 6 meson, 7 ninja, ··· 51 # https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/202 52 ./add-gnome-session-ctl-option.patch 53 54 + (replaceVars ./fix-paths.patch { 55 inherit tzdata; 56 }) 57 ];
+3 -5
pkgs/by-name/gn/gnome-shell-extensions/package.nix
··· 10 glib, 11 gnome, 12 gnome-menus, 13 - substituteAll, 14 }: 15 16 stdenv.mkDerivation (finalAttrs: { ··· 23 }; 24 25 patches = [ 26 - (substituteAll { 27 - src = ./fix_gmenu.patch; 28 gmenu_path = "${gnome-menus}/lib/girepository-1.0"; 29 }) 30 - (substituteAll { 31 - src = ./fix_gtop.patch; 32 gtop_path = "${libgtop}/lib/girepository-1.0"; 33 }) 34 ];
··· 10 glib, 11 gnome, 12 gnome-menus, 13 + replaceVars, 14 }: 15 16 stdenv.mkDerivation (finalAttrs: { ··· 23 }; 24 25 patches = [ 26 + (replaceVars ./fix_gmenu.patch { 27 gmenu_path = "${gnome-menus}/lib/girepository-1.0"; 28 }) 29 + (replaceVars ./fix_gtop.patch { 30 gtop_path = "${libgtop}/lib/girepository-1.0"; 31 }) 32 ];
+2 -3
pkgs/by-name/gn/gnome-shell/package.nix
··· 1 { 2 fetchurl, 3 fetchpatch, 4 - substituteAll, 5 lib, 6 stdenv, 7 docutils, ··· 84 85 patches = [ 86 # Hardcode paths to various dependencies so that they can be found at runtime. 87 - (substituteAll { 88 - src = ./fix-paths.patch; 89 glib_compile_schemas = "${glib.dev}/bin/glib-compile-schemas"; 90 gsettings = "${glib.bin}/bin/gsettings"; 91 tecla = "${lib.getBin gnome-tecla}/bin/tecla";
··· 1 { 2 fetchurl, 3 fetchpatch, 4 + replaceVars, 5 lib, 6 stdenv, 7 docutils, ··· 84 85 patches = [ 86 # Hardcode paths to various dependencies so that they can be found at runtime. 87 + (replaceVars ./fix-paths.patch { 88 glib_compile_schemas = "${glib.dev}/bin/glib-compile-schemas"; 89 gsettings = "${glib.bin}/bin/gsettings"; 90 tecla = "${lib.getBin gnome-tecla}/bin/tecla";
+2 -3
pkgs/by-name/gn/gnome-software/package.nix
··· 2 lib, 3 stdenv, 4 fetchurl, 5 - substituteAll, 6 pkg-config, 7 meson, 8 ninja, ··· 56 }; 57 58 patches = [ 59 - (substituteAll { 60 - src = ./fix-paths.patch; 61 inherit isocodes; 62 }) 63 ];
··· 2 lib, 3 stdenv, 4 fetchurl, 5 + replaceVars, 6 pkg-config, 7 meson, 8 ninja, ··· 56 }; 57 58 patches = [ 59 + (replaceVars ./fix-paths.patch { 60 inherit isocodes; 61 }) 62 ];
+2 -3
pkgs/by-name/go/google-cloud-cpp/package.nix
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 - substituteAll, 6 c-ares, 7 cmake, 8 crc32c, ··· 43 }; 44 45 patches = [ 46 - (substituteAll { 47 - src = ./hardcode-googleapis-path.patch; 48 url = googleapis; 49 }) 50 ];
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 + replaceVars, 6 c-ares, 7 cmake, 8 crc32c, ··· 43 }; 44 45 patches = [ 46 + (replaceVars ./hardcode-googleapis-path.patch { 47 url = googleapis; 48 }) 49 ];
+2 -3
pkgs/by-name/gp/gparted/package.nix
··· 20 util-linux, 21 polkit, 22 wrapGAppsHook3, 23 - substituteAll, 24 mtools, 25 dosfstools, 26 xhost, ··· 39 # however the binary won't be suid so it returns 40 # an error preventing the program from detection 41 patches = [ 42 - (substituteAll { 43 - src = ./polkit.patch; 44 polkit_version = polkit.version; 45 }) 46 ];
··· 20 util-linux, 21 polkit, 22 wrapGAppsHook3, 23 + replaceVars, 24 mtools, 25 dosfstools, 26 xhost, ··· 39 # however the binary won't be suid so it returns 40 # an error preventing the program from detection 41 patches = [ 42 + (replaceVars ./polkit.patch { 43 polkit_version = polkit.version; 44 }) 45 ];
+2 -3
pkgs/by-name/gu/gusb/package.nix
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 - substituteAll, 6 meson, 7 ninja, 8 pkg-config, ··· 46 }; 47 48 patches = [ 49 - (substituteAll { 50 - src = ./fix-python-path.patch; 51 python = "${pythonEnv}/bin/python3"; 52 }) 53 ];
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 + replaceVars, 6 meson, 7 ninja, 8 pkg-config, ··· 46 }; 47 48 patches = [ 49 + (replaceVars ./fix-python-path.patch { 50 python = "${pythonEnv}/bin/python3"; 51 }) 52 ];
+2 -3
pkgs/by-name/gv/gvfs/package.nix
··· 5 meson, 6 ninja, 7 pkg-config, 8 - substituteAll, 9 gettext, 10 dbus, 11 glib, ··· 55 }; 56 57 patches = [ 58 - (substituteAll { 59 - src = ./hardcode-ssh-path.patch; 60 ssh_program = "${lib.getBin openssh}/bin/ssh"; 61 }) 62 ];
··· 5 meson, 6 ninja, 7 pkg-config, 8 + replaceVars, 9 gettext, 10 dbus, 11 glib, ··· 55 }; 56 57 patches = [ 58 + (replaceVars ./hardcode-ssh-path.patch { 59 ssh_program = "${lib.getBin openssh}/bin/ssh"; 60 }) 61 ];
+4 -7
pkgs/by-name/ha/hare/package.nix
··· 6 scdoc, 7 tzdata, 8 mailcap, 9 - substituteAll, 10 callPackage, 11 enableCrossCompilation ? (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.is64bit), 12 pkgsCross, ··· 92 93 patches = [ 94 # Replace FHS paths with nix store 95 - (substituteAll { 96 - src = ./001-tzdata.patch; 97 inherit tzdata; 98 }) 99 # Don't build haredoc since it uses the build `hare` bin, which breaks 100 # cross-compilation. 101 ./002-dont-build-haredoc.patch 102 # Hardcode harec and qbe. 103 - (substituteAll { 104 - src = ./003-hardcode-qbe-and-harec.patch; 105 harec_bin = lib.getExe harec; 106 qbe_bin = lib.getExe qbe; 107 }) 108 # Use mailcap `/etc/mime.types` for Hare's mime module 109 - (substituteAll { 110 - src = ./004-use-mailcap-for-mimetypes.patch; 111 inherit mailcap; 112 }) 113 ];
··· 6 scdoc, 7 tzdata, 8 mailcap, 9 + replaceVars, 10 callPackage, 11 enableCrossCompilation ? (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.is64bit), 12 pkgsCross, ··· 92 93 patches = [ 94 # Replace FHS paths with nix store 95 + (replaceVars ./001-tzdata.patch { 96 inherit tzdata; 97 }) 98 # Don't build haredoc since it uses the build `hare` bin, which breaks 99 # cross-compilation. 100 ./002-dont-build-haredoc.patch 101 # Hardcode harec and qbe. 102 + (replaceVars ./003-hardcode-qbe-and-harec.patch { 103 harec_bin = lib.getExe harec; 104 qbe_bin = lib.getExe qbe; 105 }) 106 # Use mailcap `/etc/mime.types` for Hare's mime module 107 + (replaceVars ./004-use-mailcap-for-mimetypes.patch { 108 inherit mailcap; 109 }) 110 ];
+2 -3
pkgs/by-name/ha/haredo/package.nix
··· 7 nix-update-script, 8 makeWrapper, 9 bash, 10 - substituteAll, 11 }: 12 stdenv.mkDerivation (finalAttrs: { 13 pname = "haredo"; ··· 27 28 patches = [ 29 # Use nix store's bash instead of sh. `@bash@/bin/sh` is used, since haredo expects a posix shell. 30 - (substituteAll { 31 - src = ./001-use-nix-store-sh.patch; 32 inherit bash; 33 }) 34 ];
··· 7 nix-update-script, 8 makeWrapper, 9 bash, 10 + replaceVars, 11 }: 12 stdenv.mkDerivation (finalAttrs: { 13 pname = "haredo"; ··· 27 28 patches = [ 29 # Use nix store's bash instead of sh. `@bash@/bin/sh` is used, since haredo expects a posix shell. 30 + (replaceVars ./001-use-nix-store-sh.patch { 31 inherit bash; 32 }) 33 ];
+2 -3
pkgs/by-name/ho/howard-hinnant-date/package.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, tzdata, fetchpatch, substituteAll }: 2 3 stdenv.mkDerivation rec { 4 pname = "howard-hinnant-date"; ··· 22 # Without this patch, this library will drop a `tzdata` directory into 23 # `~/Downloads` if it cannot find `/usr/share/zoneinfo`. Make the path it 24 # searches for `zoneinfo` be the one from the `tzdata` package. 25 - (substituteAll { 26 - src = ./make-zoneinfo-available.diff; 27 inherit tzdata; 28 }) 29 ];
··· 1 + { lib, stdenv, fetchFromGitHub, cmake, tzdata, fetchpatch, replaceVars }: 2 3 stdenv.mkDerivation rec { 4 pname = "howard-hinnant-date"; ··· 22 # Without this patch, this library will drop a `tzdata` directory into 23 # `~/Downloads` if it cannot find `/usr/share/zoneinfo`. Make the path it 24 # searches for `zoneinfo` be the one from the `tzdata` package. 25 + (replaceVars ./make-zoneinfo-available.diff { 26 inherit tzdata; 27 }) 28 ];
+2 -3
pkgs/by-name/in/iniparser/package.nix
··· 3 stdenv, 4 fetchFromGitLab, 5 fetchFromGitHub, 6 - substituteAll, 7 symlinkJoin, 8 cmake, 9 doxygen, ··· 24 }; 25 26 patches = lib.optionals finalAttrs.finalPackage.doCheck [ 27 - (substituteAll { 28 # Do not let cmake's fetchContent download unity 29 - src = ./remove-fetchcontent-usage.patch; 30 unitySrc = symlinkJoin { 31 name = "unity-with-iniparser-config"; 32 paths = [
··· 3 stdenv, 4 fetchFromGitLab, 5 fetchFromGitHub, 6 + replaceVars, 7 symlinkJoin, 8 cmake, 9 doxygen, ··· 24 }; 25 26 patches = lib.optionals finalAttrs.finalPackage.doCheck [ 27 + (replaceVars ./remove-fetchcontent-usage.patch { 28 # Do not let cmake's fetchContent download unity 29 unitySrc = symlinkJoin { 30 name = "unity-with-iniparser-config"; 31 paths = [
+2 -3
pkgs/by-name/is/isc-cron/package.nix
··· 2 lib, 3 fetchurl, 4 stdenv, 5 - substituteAll, 6 vim, 7 sendmailPath ? "/usr/sbin/sendmail", 8 }: ··· 17 }; 18 19 patches = [ 20 - (substituteAll { 21 - src = ./0000-nixpkgs-specific.diff; 22 inherit sendmailPath; 23 viPath = lib.getExe' vim "vim"; 24 defPath = lib.concatStringsSep ":" [
··· 2 lib, 3 fetchurl, 4 stdenv, 5 + replaceVars, 6 vim, 7 sendmailPath ? "/usr/sbin/sendmail", 8 }: ··· 17 }; 18 19 patches = [ 20 + (replaceVars ./0000-nixpkgs-specific.diff { 21 inherit sendmailPath; 22 viPath = lib.getExe' vim "vim"; 23 defPath = lib.concatStringsSep ":" [
+2 -3
pkgs/by-name/jo/john/package.nix
··· 19 ocl-icd, 20 # include non-free ClamAV unrar code 21 enableUnfree ? false, 22 - substituteAll, 23 makeWrapper, 24 }: 25 ··· 35 }; 36 37 patches = lib.optionals withOpenCL [ 38 - (substituteAll { 39 - src = ./opencl.patch; 40 ocl_icd = ocl-icd; 41 }) 42 ];
··· 19 ocl-icd, 20 # include non-free ClamAV unrar code 21 enableUnfree ? false, 22 + replaceVars, 23 makeWrapper, 24 }: 25 ··· 35 }; 36 37 patches = lib.optionals withOpenCL [ 38 + (replaceVars ./opencl.patch { 39 ocl_icd = ocl-icd; 40 }) 41 ];
+2 -3
pkgs/by-name/ke/keepass/package.nix
··· 6 mono, 7 makeWrapper, 8 icoutils, 9 - substituteAll, 10 xsel, 11 xorg, 12 xdotool, ··· 37 buildInputs = [ icoutils ]; 38 39 patches = [ 40 - (substituteAll { 41 - src = ./fix-paths.patch; 42 xsel = "${xsel}/bin/xsel"; 43 xprop = "${xorg.xprop}/bin/xprop"; 44 xdotool = "${xdotool}/bin/xdotool";
··· 6 mono, 7 makeWrapper, 8 icoutils, 9 + replaceVars, 10 xsel, 11 xorg, 12 xdotool, ··· 37 buildInputs = [ icoutils ]; 38 39 patches = [ 40 + (replaceVars ./fix-paths.patch { 41 xsel = "${xsel}/bin/xsel"; 42 xprop = "${xorg.xprop}/bin/xprop"; 43 xdotool = "${xdotool}/bin/xdotool";
+2 -3
pkgs/by-name/la/lalrpop/package.nix
··· 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 - substituteAll, 6 stdenv, 7 }: 8 ··· 20 cargoHash = "sha256-zkPLas+fQQzm7LlWNpTooUR/e30KMS9OET6PMwQ2yAA="; 21 22 patches = [ 23 - (substituteAll { 24 - src = ./use-correct-binary-path-in-tests.patch; 25 target_triple = stdenv.hostPlatform.rust.rustcTarget; 26 }) 27 ];
··· 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 + replaceVars, 6 stdenv, 7 }: 8 ··· 20 cargoHash = "sha256-zkPLas+fQQzm7LlWNpTooUR/e30KMS9OET6PMwQ2yAA="; 21 22 patches = [ 23 + (replaceVars ./use-correct-binary-path-in-tests.patch { 24 target_triple = stdenv.hostPlatform.rust.rustcTarget; 25 }) 26 ];
+2 -3
pkgs/by-name/li/libosinfo/package.nix
··· 19 perl, 20 hwdata, 21 osinfo-db, 22 - substituteAll, 23 vala ? null, 24 }: 25 ··· 61 ]; 62 63 patches = [ 64 - (substituteAll { 65 - src = ./osinfo-db-data-dir.patch; 66 osinfo_db_data_dir = "${osinfo-db}/share"; 67 }) 68
··· 19 perl, 20 hwdata, 21 osinfo-db, 22 + replaceVars, 23 vala ? null, 24 }: 25 ··· 61 ]; 62 63 patches = [ 64 + (replaceVars ./osinfo-db-data-dir.patch { 65 osinfo_db_data_dir = "${osinfo-db}/share"; 66 }) 67
+2 -3
pkgs/by-name/me/metacity/package.nix
··· 13 libstartup_notification, 14 libxml2, 15 pkg-config, 16 - substituteAll, 17 wrapGAppsHook3, 18 zenity, 19 }: ··· 28 }; 29 30 patches = [ 31 - (substituteAll { 32 - src = ./fix-paths.patch; 33 inherit zenity; 34 }) 35 ];
··· 13 libstartup_notification, 14 libxml2, 15 pkg-config, 16 + replaceVars, 17 wrapGAppsHook3, 18 zenity, 19 }: ··· 28 }; 29 30 patches = [ 31 + (replaceVars ./fix-paths.patch { 32 inherit zenity; 33 }) 34 ];
+2 -3
pkgs/by-name/mi/minigalaxy/package.nix
··· 8 libnotify, 9 python3Packages, 10 steam-run, 11 - substituteAll, 12 unzip, 13 webkitgtk_4_0, 14 wrapGAppsHook3, ··· 26 }; 27 28 patches = [ 29 - (substituteAll { 30 - src = ./inject-launcher-steam-run.diff; 31 steamrun = lib.getExe steam-run; 32 }) 33 ];
··· 8 libnotify, 9 python3Packages, 10 steam-run, 11 + replaceVars, 12 unzip, 13 webkitgtk_4_0, 14 wrapGAppsHook3, ··· 26 }; 27 28 patches = [ 29 + (replaceVars ./inject-launcher-steam-run.diff { 30 steamrun = lib.getExe steam-run; 31 }) 32 ];
+2 -3
pkgs/by-name/mi/mirakurun/package.nix
··· 7 installShellFiles, 8 makeWrapper, 9 nodejs, 10 - substituteAll, 11 v4l-utils, 12 which, 13 }: ··· 46 nodejs 47 which 48 ] ++ lib.optionals stdenv.hostPlatform.isLinux [ v4l-utils ]; 49 - crc32Patch = substituteAll { 50 - src = ./fix-musl-detection.patch; 51 isMusl = if stdenv.hostPlatform.isMusl then "true" else "false"; 52 }; 53 in
··· 7 installShellFiles, 8 makeWrapper, 9 nodejs, 10 + replaceVars, 11 v4l-utils, 12 which, 13 }: ··· 46 nodejs 47 which 48 ] ++ lib.optionals stdenv.hostPlatform.isLinux [ v4l-utils ]; 49 + crc32Patch = replaceVars ./fix-musl-detection.patch { 50 isMusl = if stdenv.hostPlatform.isMusl then "true" else "false"; 51 }; 52 in
+2 -3
pkgs/by-name/mu/muffin/package.nix
··· 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 - substituteAll, 6 cairo, 7 cinnamon-desktop, 8 dbus, ··· 58 }; 59 60 patches = [ 61 - (substituteAll { 62 - src = ./fix-paths.patch; 63 inherit zenity; 64 }) 65 ];
··· 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 + replaceVars, 6 cairo, 7 cinnamon-desktop, 8 dbus, ··· 58 }; 59 60 patches = [ 61 + (replaceVars ./fix-paths.patch { 62 inherit zenity; 63 }) 64 ];
+2 -3
pkgs/by-name/mu/music-assistant/package.nix
··· 4 fetchFromGitHub, 5 ffmpeg-headless, 6 nixosTests, 7 - substituteAll, 8 providers ? [ ], 9 }: 10 ··· 38 }; 39 40 patches = [ 41 - (substituteAll { 42 - src = ./ffmpeg.patch; 43 ffmpeg = "${lib.getBin ffmpeg-headless}/bin/ffmpeg"; 44 ffprobe = "${lib.getBin ffmpeg-headless}/bin/ffprobe"; 45 })
··· 4 fetchFromGitHub, 5 ffmpeg-headless, 6 nixosTests, 7 + replaceVars, 8 providers ? [ ], 9 }: 10 ··· 38 }; 39 40 patches = [ 41 + (replaceVars ./ffmpeg.patch { 42 ffmpeg = "${lib.getBin ffmpeg-headless}/bin/ffmpeg"; 43 ffprobe = "${lib.getBin ffmpeg-headless}/bin/ffprobe"; 44 })
+2 -3
pkgs/by-name/na/nautilus-python/package.nix
··· 1 { 2 stdenv, 3 lib, 4 - substituteAll, 5 fetchurl, 6 meson, 7 ninja, ··· 32 33 patches = [ 34 # Make PyGObject’s gi library available. 35 - (substituteAll { 36 - src = ./fix-paths.patch; 37 pythonPaths = lib.concatMapStringsSep ", " (pkg: "'${pkg}/${python3.sitePackages}'") [ 38 python3.pkgs.pygobject3 39 ];
··· 1 { 2 stdenv, 3 lib, 4 + replaceVars, 5 fetchurl, 6 meson, 7 ninja, ··· 32 33 patches = [ 34 # Make PyGObject’s gi library available. 35 + (replaceVars ./fix-paths.patch { 36 pythonPaths = lib.concatMapStringsSep ", " (pkg: "'${pkg}/${python3.sitePackages}'") [ 37 python3.pkgs.pygobject3 38 ];
+2 -3
pkgs/by-name/nu/nut/package.nix
··· 17 net-snmp, 18 openssl, 19 pkg-config, 20 - substituteAll, 21 systemd, 22 udev, 23 gnused, ··· 40 # trying to install directly into /etc/nut which predictably fails 41 ./nutshutdown-conf-default.patch 42 43 - (substituteAll { 44 - src = ./hardcode-paths.patch; 45 avahi = "${avahi}/lib"; 46 freeipmi = "${freeipmi}/lib"; 47 libgpiod = "${libgpiod_1}/lib";
··· 17 net-snmp, 18 openssl, 19 pkg-config, 20 + replaceVars, 21 systemd, 22 udev, 23 gnused, ··· 40 # trying to install directly into /etc/nut which predictably fails 41 ./nutshutdown-conf-default.patch 42 43 + (replaceVars ./hardcode-paths.patch { 44 avahi = "${avahi}/lib"; 45 freeipmi = "${freeipmi}/lib"; 46 libgpiod = "${libgpiod_1}/lib";
+3 -5
pkgs/by-name/oc/octoprint/package.nix
··· 6 fetchFromGitHub, 7 fetchPypi, 8 python3, 9 - substituteAll, 10 nix-update-script, 11 nixosTests, 12 # To include additional plugins, pass them here as an overlay. ··· 194 195 patches = [ 196 # substitute pip and let it find out, that it can't write anywhere 197 - (substituteAll { 198 - src = ./pip-path.patch; 199 pip = "${self.pip}/bin/pip"; 200 }) 201 202 # hardcore path to ffmpeg and hide related settings 203 - (substituteAll { 204 - src = ./ffmpeg-path.patch; 205 ffmpeg = "${pkgs.ffmpeg}/bin/ffmpeg"; 206 }) 207 ];
··· 6 fetchFromGitHub, 7 fetchPypi, 8 python3, 9 + replaceVars, 10 nix-update-script, 11 nixosTests, 12 # To include additional plugins, pass them here as an overlay. ··· 194 195 patches = [ 196 # substitute pip and let it find out, that it can't write anywhere 197 + (replaceVars ./pip-path.patch { 198 pip = "${self.pip}/bin/pip"; 199 }) 200 201 # hardcore path to ffmpeg and hide related settings 202 + (replaceVars ./ffmpeg-path.patch { 203 ffmpeg = "${pkgs.ffmpeg}/bin/ffmpeg"; 204 }) 205 ];
+2 -3
pkgs/by-name/on/onboard/package.nix
··· 3 fetchpatch, 4 stdenv, 5 lib, 6 - substituteAll, 7 aspellWithDicts, 8 at-spi2-core ? null, 9 atspiSupport ? true, ··· 51 }; 52 53 patches = [ 54 - (substituteAll { 55 - src = ./fix-paths.patch; 56 inherit mousetweaks; 57 }) 58 # Allow loading hunspell dictionaries installed in NixOS system path
··· 3 fetchpatch, 4 stdenv, 5 lib, 6 + replaceVars, 7 aspellWithDicts, 8 at-spi2-core ? null, 9 atspiSupport ? true, ··· 51 }; 52 53 patches = [ 54 + (replaceVars ./fix-paths.patch { 55 inherit mousetweaks; 56 }) 57 # Allow loading hunspell dictionaries installed in NixOS system path
+2 -3
pkgs/by-name/or/orca/package.nix
··· 12 python3, 13 gtk3, 14 gnome, 15 - substituteAll, 16 at-spi2-atk, 17 at-spi2-core, 18 dbus, ··· 39 }; 40 41 patches = [ 42 - (substituteAll { 43 - src = ./fix-paths.patch; 44 cat = "${coreutils}/bin/cat"; 45 lsof = "${lsof}/bin/lsof"; 46 pgrep = "${procps}/bin/pgrep";
··· 12 python3, 13 gtk3, 14 gnome, 15 + replaceVars, 16 at-spi2-atk, 17 at-spi2-core, 18 dbus, ··· 39 }; 40 41 patches = [ 42 + (replaceVars ./fix-paths.patch { 43 cat = "${coreutils}/bin/cat"; 44 lsof = "${lsof}/bin/lsof"; 45 pgrep = "${procps}/bin/pgrep";
+3 -5
pkgs/by-name/pa/patchPpdFilesHook/test.nix
··· 1 { 2 - substituteAll, 3 diffutils, 4 stdenv, 5 patchPpdFilesHook, 6 }: 7 8 let 9 - input = substituteAll { 10 - src = ./test.ppd; 11 keep = "cmp"; 12 patch = "cmp"; 13 pathkeep = "/bin/cmp"; 14 pathpatch = "/bin/cmp"; 15 }; 16 17 - output = substituteAll { 18 - src = ./test.ppd; 19 keep = "cmp"; 20 patch = "${diffutils}/bin/cmp"; 21 pathkeep = "/bin/cmp";
··· 1 { 2 + replaceVars, 3 diffutils, 4 stdenv, 5 patchPpdFilesHook, 6 }: 7 8 let 9 + input = replaceVars ./test.ppd { 10 keep = "cmp"; 11 patch = "cmp"; 12 pathkeep = "/bin/cmp"; 13 pathpatch = "/bin/cmp"; 14 }; 15 16 + output = replaceVars ./test.ppd { 17 keep = "cmp"; 18 patch = "${diffutils}/bin/cmp"; 19 pathkeep = "/bin/cmp";
+2 -3
pkgs/by-name/pl/plymouth/package.nix
··· 3 stdenv, 4 fetchFromGitLab, 5 writeText, 6 - substituteAll, 7 meson, 8 pkg-config, 9 ninja, ··· 44 # add support for loading plugins from /run to assist NixOS module 45 ./add-runtime-plugin-path.patch 46 # fix FHS hardcoded paths 47 - (substituteAll { 48 - src = ./fix-paths.patch; 49 fcmatch = "${fontconfig}/bin/fc-match"; 50 }) 51 ];
··· 3 stdenv, 4 fetchFromGitLab, 5 writeText, 6 + replaceVars, 7 meson, 8 pkg-config, 9 ninja, ··· 44 # add support for loading plugins from /run to assist NixOS module 45 ./add-runtime-plugin-path.patch 46 # fix FHS hardcoded paths 47 + (replaceVars ./fix-paths.patch { 48 fcmatch = "${fontconfig}/bin/fc-match"; 49 }) 50 ];
+2 -3
pkgs/by-name/po/podman/package.nix
··· 19 makeWrapper, 20 runtimeShell, 21 symlinkJoin, 22 - substituteAll, 23 extraPackages ? [ ], 24 crun, 25 runc, ··· 85 }; 86 87 patches = [ 88 - (substituteAll { 89 - src = ./hardcode-paths.patch; 90 bin_path = helpersBin; 91 }) 92
··· 19 makeWrapper, 20 runtimeShell, 21 symlinkJoin, 22 + replaceVars, 23 extraPackages ? [ ], 24 crun, 25 runc, ··· 85 }; 86 87 patches = [ 88 + (replaceVars ./hardcode-paths.patch { 89 bin_path = helpersBin; 90 }) 91
+2 -3
pkgs/by-name/pr/pretix/plugins/passbook.nix
··· 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 - substituteAll, 6 7 # build-system 8 pretix-plugin-build, ··· 29 }; 30 31 patches = [ 32 - (substituteAll { 33 - src = ./passbook-openssl.patch; 34 openssl = lib.getExe openssl; 35 }) 36 ];
··· 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 + replaceVars, 6 7 # build-system 8 pretix-plugin-build, ··· 29 }; 30 31 patches = [ 32 + (replaceVars ./passbook-openssl.patch { 33 openssl = lib.getExe openssl; 34 }) 35 ];
+2 -3
pkgs/by-name/st/streamlink/package.nix
··· 2 lib, 3 python3Packages, 4 fetchPypi, 5 - substituteAll, 6 ffmpeg, 7 }: 8 ··· 17 }; 18 19 patches = [ 20 - (substituteAll { 21 - src = ./ffmpeg-path.patch; 22 ffmpeg = lib.getExe ffmpeg; 23 }) 24 ];
··· 2 lib, 3 python3Packages, 4 fetchPypi, 5 + replaceVars, 6 ffmpeg, 7 }: 8 ··· 17 }; 18 19 patches = [ 20 + (replaceVars ./ffmpeg-path.patch { 21 ffmpeg = lib.getExe ffmpeg; 22 }) 23 ];
+2 -3
pkgs/by-name/sw/sway-unwrapped/package.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchpatch, substituteAll, swaybg 2 , meson, ninja, pkg-config, wayland-scanner, scdoc 3 , libGL, wayland, libxkbcommon, pcre2, json_c, libevdev 4 , pango, cairo, libinput, gdk-pixbuf, librsvg ··· 26 patches = [ 27 ./load-configuration-from-etc.patch 28 29 - (substituteAll { 30 - src = ./fix-paths.patch; 31 inherit swaybg; 32 }) 33
··· 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, replaceVars, swaybg 2 , meson, ninja, pkg-config, wayland-scanner, scdoc 3 , libGL, wayland, libxkbcommon, pcre2, json_c, libevdev 4 , pango, cairo, libinput, gdk-pixbuf, librsvg ··· 26 patches = [ 27 ./load-configuration-from-etc.patch 28 29 + (replaceVars ./fix-paths.patch { 30 inherit swaybg; 31 }) 32
+2 -3
pkgs/by-name/sw/swayfx-unwrapped/package.nix
··· 4 stdenv, 5 systemd, 6 meson, 7 - substituteAll, 8 swaybg, 9 ninja, 10 pkg-config, ··· 57 [ 58 ./load-configuration-from-etc.patch 59 60 - (substituteAll { 61 - src = ./fix-paths.patch; 62 inherit swaybg; 63 }) 64 ]
··· 4 stdenv, 5 systemd, 6 meson, 7 + replaceVars, 8 swaybg, 9 ninja, 10 pkg-config, ··· 57 [ 58 ./load-configuration-from-etc.patch 59 60 + (replaceVars ./fix-paths.patch { 61 inherit swaybg; 62 }) 63 ]
+2 -3
pkgs/by-name/um/umockdev/package.nix
··· 13 ninja, 14 pkg-config, 15 python3, 16 - substituteAll, 17 systemdMinimal, 18 usbutils, 19 vala, ··· 44 # Replace references to udevadm with an absolute paths, so programs using 45 # umockdev will just work without having to provide it in their test environment 46 # $PATH. 47 - (substituteAll { 48 - src = ./substitute-udevadm.patch; 49 udevadm = "${systemdMinimal}/bin/udevadm"; 50 }) 51 ];
··· 13 ninja, 14 pkg-config, 15 python3, 16 + replaceVars, 17 systemdMinimal, 18 usbutils, 19 vala, ··· 44 # Replace references to udevadm with an absolute paths, so programs using 45 # umockdev will just work without having to provide it in their test environment 46 # $PATH. 47 + (replaceVars ./substitute-udevadm.patch { 48 udevadm = "${systemdMinimal}/bin/udevadm"; 49 }) 50 ];
+2 -3
pkgs/by-name/xs/xscreensaver/package.nix
··· 29 forceInstallAllHacks ? true, 30 withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd, 31 nixosTests, 32 - substituteAll, 33 wrapperPrefix ? "/run/wrappers/bin", 34 }: 35 ··· 83 ''; 84 85 patches = [ 86 - (substituteAll { 87 - src = ./xscreensaver-wrapper-prefix.patch; 88 inherit wrapperPrefix; 89 }) 90 ];
··· 29 forceInstallAllHacks ? true, 30 withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd, 31 nixosTests, 32 + replaceVars, 33 wrapperPrefix ? "/run/wrappers/bin", 34 }: 35 ··· 83 ''; 84 85 patches = [ 86 + (replaceVars ./xscreensaver-wrapper-prefix.patch { 87 inherit wrapperPrefix; 88 }) 89 ];