Merge #12779: Mass replace `pkg}/bin`-style strings

... to refer to correct outputs

+37 -37
+2 -2
nixos/modules/programs/xfs_quota.nix
··· 89 89 nameValuePair "xfs_quota-${name}" { 90 90 description = "Setup xfs_quota for project ${name}"; 91 91 script = '' 92 - ${pkgs.xfsprogs}/bin/xfs_quota -x -c 'project -s ${name}' ${opts.fileSystem} 93 - ${pkgs.xfsprogs}/bin/xfs_quota -x -c 'limit -p ${limitOptions opts} ${name}' ${opts.fileSystem} 92 + ${pkgs.xfsprogs.bin}/bin/xfs_quota -x -c 'project -s ${name}' ${opts.fileSystem} 93 + ${pkgs.xfsprogs.bin}/bin/xfs_quota -x -c 'limit -p ${limitOptions opts} ${name}' ${opts.fileSystem} 94 94 ''; 95 95 96 96 wantedBy = [ "multi-user.target" ];
+1 -1
nixos/modules/services/web-servers/apache-httpd/owncloud.nix
··· 333 333 334 334 'version' => '${config.package.version}', 335 335 336 - 'openssl' => '${pkgs.openssl}/bin/openssl' 336 + 'openssl' => '${pkgs.openssl.bin}/bin/openssl' 337 337 338 338 ); 339 339
+1 -1
nixos/modules/system/boot/luksroot.nix
··· 436 436 ${optionalString luks.yubikeySupport '' 437 437 copy_bin_and_libs ${pkgs.ykpers}/bin/ykchalresp 438 438 copy_bin_and_libs ${pkgs.ykpers}/bin/ykinfo 439 - copy_bin_and_libs ${pkgs.openssl}/bin/openssl 439 + copy_bin_and_libs ${pkgs.openssl.bin}/bin/openssl 440 440 441 441 cc -O3 -I${pkgs.openssl}/include -L${pkgs.openssl.out}/lib ${./pbkdf2-sha512.c} -o pbkdf2-sha512 -lcrypto 442 442 strip -s pbkdf2-sha512
+1 -1
pkgs/applications/audio/caudec/default.nix
··· 25 25 postFixup = '' 26 26 for executable in $(cd $out/bin && ls); do 27 27 wrapProgram $out/bin/$executable \ 28 - --prefix PATH : "${bc}/bin:${findutils}/bin:${sox}/bin:${procps}/bin:${opusTools}/bin:${lame}/bin:${flac}/bin" 28 + --prefix PATH : "${bc}/bin:${findutils}/bin:${sox}/bin:${procps}/bin:${opusTools}/bin:${lame}/bin:${flac.bin}/bin" 29 29 done 30 30 ''; 31 31
+1 -1
pkgs/applications/misc/calibre/default.nix
··· 59 59 60 60 for a in $out/bin/*; do 61 61 wrapProgram $a --prefix PYTHONPATH : $PYTHONPATH \ 62 - --prefix PATH : ${poppler_utils}/bin 62 + --prefix PATH : ${poppler_utils.out}/bin 63 63 done 64 64 ''; 65 65
+1 -1
pkgs/applications/misc/dunst/default.nix
··· 26 26 27 27 postFixup = '' 28 28 wrapProgram "$out/bin/dunst" \ 29 - --prefix PATH : '${dbus_daemon}/bin' 29 + --prefix PATH : '${dbus_daemon.out}/bin' 30 30 ''; 31 31 32 32 meta = {
+1 -1
pkgs/applications/misc/udevil/default.nix
··· 14 14 --with-mount-prog=${utillinux}/bin/mount \ 15 15 --with-umount-prog=${utillinux}/bin/umount \ 16 16 --with-losetup-prog=${utillinux}/bin/losetup \ 17 - --with-setfacl-prog=${acl}/bin/setfacl \ 17 + --with-setfacl-prog=${acl.bin}/bin/setfacl \ 18 18 --sysconfdir=$prefix/etc 19 19 ''; 20 20 preConfigure = ''
+1 -1
pkgs/applications/networking/mailreaders/mailpile/default.nix
··· 21 21 22 22 postInstall = '' 23 23 wrapProgram $out/bin/mailpile \ 24 - --prefix PATH ":" "${gnupg1orig}/bin:${openssl}/bin" 24 + --prefix PATH ":" "${gnupg1orig}/bin:${openssl.bin}/bin" 25 25 ''; 26 26 27 27 meta = with stdenv.lib; {
+1 -1
pkgs/applications/search/recoll/default.nix
··· 34 34 substituteInPlace $f --replace gunzip ${gzip}/bin/gunzip 35 35 substituteInPlace $f --replace iconv ${libiconv.bin}/bin/iconv 36 36 substituteInPlace $f --replace lyx ${lyx}/bin/lyx 37 - substituteInPlace $f --replace pdftotext ${poppler_utils}/bin/pdftotext 37 + substituteInPlace $f --replace pdftotext ${poppler_utils.out}/bin/pdftotext 38 38 substituteInPlace $f --replace pstotext ${ghostscript}/bin/ps2ascii 39 39 substituteInPlace $f --replace sed ${gnused}/bin/sed 40 40 substituteInPlace $f --replace tar ${gnutar}/bin/tar
+2 -2
pkgs/applications/version-management/git-and-tools/cgit/default.nix
··· 28 28 29 29 postPatch = '' 30 30 sed -e 's|"gzip"|"${gzip}/bin/gzip"|' \ 31 - -e 's|"bzip2"|"${bzip2}/bin/bzip2"|' \ 32 - -e 's|"xz"|"${xz}/bin/xz"|' \ 31 + -e 's|"bzip2"|"${bzip2.bin}/bin/bzip2"|' \ 32 + -e 's|"xz"|"${xz.bin}/bin/xz"|' \ 33 33 -i ui-snapshot.c 34 34 ''; 35 35
+1 -1
pkgs/applications/virtualization/docker/default.nix
··· 40 40 install -Dm755 ./bundles/${version}/dynbinary/docker-${version} $out/libexec/docker/docker 41 41 install -Dm755 ./bundles/${version}/dynbinary/dockerinit-${version} $out/libexec/docker/dockerinit 42 42 makeWrapper $out/libexec/docker/docker $out/bin/docker \ 43 - --prefix PATH : "${iproute}/sbin:sbin:${iptables}/sbin:${e2fsprogs}/sbin:${xz}/bin:${utillinux}/bin:${optionalString enableLxc "${lxc}/bin"}" 43 + --prefix PATH : "${iproute}/sbin:sbin:${iptables}/sbin:${e2fsprogs}/sbin:${xz.bin}/bin:${utillinux}/bin:${optionalString enableLxc "${lxc}/bin"}" 44 44 45 45 # systemd 46 46 install -Dm644 ./contrib/init/systemd/docker.service $out/etc/systemd/system/docker.service
+1 -1
pkgs/applications/virtualization/openstack/keystone.nix
··· 33 33 ldap ldappool webtest requests2 oslotest pep8 pymongo which 34 34 ]; 35 35 36 - makeWrapperArgs = ["--prefix PATH : '${openssl}/bin:$PATH'"]; 36 + makeWrapperArgs = ["--prefix PATH : '${openssl.bin}/bin:$PATH'"]; 37 37 38 38 postInstall = '' 39 39 # install .ini files
+1 -1
pkgs/applications/window-managers/weston/default.nix
··· 35 35 ++ stdenv.lib.optional (vaapi != null) "--enabe-vaapi-recorder" 36 36 ++ stdenv.lib.optionals (xwayland != null) [ 37 37 "--enable-xwayland" 38 - "--with-xserver-path=${xwayland}/bin/Xwayland" 38 + "--with-xserver-path=${xwayland.out}/bin/Xwayland" 39 39 ]; 40 40 41 41 meta = with stdenv.lib; {
+1 -1
pkgs/build-support/vm/default.nix
··· 574 574 buildCommand = '' 575 575 ${createRootFS} 576 576 577 - PATH=$PATH:${dpkg}/bin:${dpkg}/bin:${glibc.bin}/bin:${lzma}/bin 577 + PATH=$PATH:${dpkg}/bin:${dpkg}/bin:${glibc.bin}/bin:${lzma.bin}/bin 578 578 579 579 # Unpack the .debs. We do this to prevent pre-install scripts 580 580 # (which have lots of circular dependencies) from barfing.
+1 -1
pkgs/development/libraries/glib/default.nix
··· 105 105 export XDG_RUNTIME_HOME="$TMP" 106 106 export HOME="$TMP" 107 107 export XDG_DATA_DIRS="${desktop_file_utils}/share:${shared_mime_info}/share" 108 - export G_TEST_DBUS_DAEMON="${dbus_daemon}/bin/dbus-daemon" 108 + export G_TEST_DBUS_DAEMON="${dbus_daemon.out}/bin/dbus-daemon" 109 109 110 110 substituteInPlace gio/tests/desktop-files/home/applications/epiphany-weather-for-toronto-island-9c6a4e022b17686306243dada811d550d25eb1fb.desktop --replace "Exec=/bin/true" "Exec=${coreutils}/bin/true" 111 111 # Needs machine-id, comment the test
+1 -1
pkgs/development/libraries/opendkim/default.nix
··· 16 16 17 17 postInstall = '' 18 18 wrapProgram $out/sbin/opendkim-genkey \ 19 - --prefix PATH : ${openssl}/bin 19 + --prefix PATH : ${openssl.bin}/bin 20 20 ''; 21 21 22 22 meta = with stdenv.lib; {
+1 -1
pkgs/development/tools/sslmate/default.nix
··· 19 19 JSONPP 20 20 TermReadKey 21 21 ]}" \ 22 - --prefix PATH : "${openssl}/bin" 22 + --prefix PATH : "${openssl.bin}/bin" 23 23 ''; 24 24 25 25 meta = with stdenv.lib; {
+1 -1
pkgs/os-specific/linux/sysstat/default.nix
··· 13 13 preConfigure = '' 14 14 export PATH_CP=$(type -tp cp) 15 15 export PATH_CHKCONFIG=/no-such-program 16 - export BZIP=${bzip2}/bin/bzip2 16 + export BZIP=${bzip2.bin}/bin/bzip2 17 17 export SYSTEMCTL=systemctl 18 18 ''; 19 19
+6 -6
pkgs/servers/http/nix-binary-cache/default.nix
··· 15 15 --replace @coreutils@ "${coreutils}/bin" \ 16 16 --replace @findutils@ "${findutils}/bin" \ 17 17 --replace @nix@ "${nix}/bin" \ 18 - --replace @xz@ "${xz}/bin" \ 19 - --replace @bzip2@ "${bzip2}/bin" \ 18 + --replace @xz@ "${xz.bin}/bin" \ 19 + --replace @bzip2@ "${bzip2.bin}/bin" \ 20 20 --replace @gnused@ "${gnused}/bin" \ 21 21 --replace @gnugrep@ "${gnugrep}/bin" \ 22 - --replace @openssl@ "${openssl}/bin" \ 22 + --replace @openssl@ "${openssl.bin}/bin" \ 23 23 --replace @lighttpd@ "${lighttpd}/sbin" \ 24 24 --replace @iproute@ "${iproute}/sbin" \ 25 25 --replace "xXxXx" "xXxXx" ··· 32 32 --replace @coreutils@ "${coreutils}/bin" \ 33 33 --replace @findutils@ "${findutils}/bin" \ 34 34 --replace @nix@ "${nix}/bin" \ 35 - --replace @xz@ "${xz}/bin" \ 36 - --replace @bzip2@ "${bzip2}/bin" \ 35 + --replace @xz@ "${xz.bin}/bin" \ 36 + --replace @bzip2@ "${bzip2.bin}/bin" \ 37 37 --replace @gnused@ "${gnused}/bin" \ 38 38 --replace @gnugrep@ "${gnugrep}/bin" \ 39 - --replace @openssl@ "${openssl}/bin" \ 39 + --replace @openssl@ "${openssl.bin}/bin" \ 40 40 --replace @lighttpd@ "${lighttpd}/sbin" \ 41 41 --replace @iproute@ "${iproute}/sbin" \ 42 42 --replace "xXxXx" "xXxXx"
+1 -1
pkgs/servers/shellinabox/default.nix
··· 22 22 substituteInPlace ./shellinabox/launcher.c --replace "/usr/games" "${openssh}/bin" 23 23 substituteInPlace ./shellinabox/service.c --replace "/bin/login" "${shadow}/bin/login" 24 24 substituteInPlace ./shellinabox/launcher.c --replace "/bin/login" "${shadow}/bin/login" 25 - substituteInPlace ./libhttp/ssl.c --replace "/usr/bin" "${openssl}/bin" 25 + substituteInPlace ./libhttp/ssl.c --replace "/usr/bin" "${openssl.bin}/bin" 26 26 ''; 27 27 28 28 postInstall = ''
+1 -1
pkgs/stdenv/linux/make-bootstrap-tools-cross.nix
··· 166 166 cp -d ${gawk}/bin/awk $out/bin 167 167 cp ${gnutar}/bin/tar $out/bin 168 168 cp ${gzip}/bin/gzip $out/bin 169 - cp ${bzip2}/bin/bzip2 $out/bin 169 + cp ${bzip2.bin}/bin/bzip2 $out/bin 170 170 cp -d ${gnumake}/bin/* $out/bin 171 171 cp -d ${patch}/bin/* $out/bin 172 172 cp ${patchelf}/bin/* $out/bin
+1 -1
pkgs/stdenv/linux/make-bootstrap-tools.nix
··· 79 79 cp -d ${gawk}/bin/awk $out/bin 80 80 cp ${gnutar}/bin/tar $out/bin 81 81 cp ${gzip}/bin/gzip $out/bin 82 - cp ${bzip2}/bin/bzip2 $out/bin 82 + cp ${bzip2.bin}/bin/bzip2 $out/bin 83 83 cp -d ${gnumake}/bin/* $out/bin 84 84 cp -d ${patch}/bin/* $out/bin 85 85 cp ${patchelf}/bin/* $out/bin
+1 -1
pkgs/tools/audio/beets/default.nix
··· 121 121 }' beets/ui/commands.py 122 122 '' + optionalString enableBadfiles '' 123 123 sed -i -e '/self\.run_command(\[/ { 124 - s,"flac","${flac}/bin/flac", 124 + s,"flac","${flac.bin}/bin/flac", 125 125 s,"mp3val","${mp3val}/bin/mp3val", 126 126 }' beetsplug/badfiles.py 127 127 '' + optionalString enableReplaygain ''
+1 -1
pkgs/tools/backup/store-backup/default.nix
··· 41 41 for p in $out/bin/* 42 42 do wrapProgram "$p" \ 43 43 --prefix PERL5LIB ":" "${perlPackages.DBFile}/lib/perl5/site_perl" \ 44 - --prefix PATH ":" "${which}/bin:${bzip2}/bin" 44 + --prefix PATH ":" "${which}/bin:${bzip2.bin}/bin" 45 45 done 46 46 47 47 patchShebangs $out
+1 -1
pkgs/tools/compression/pxz/default.nix
··· 20 20 gcc -o pxz pxz.c -llzma \ 21 21 -fopenmp -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 \ 22 22 -DPXZ_BUILD_DATE=\"nixpkgs\" \ 23 - -DXZ_BINARY=\"${xz}/bin/xz\" \ 23 + -DXZ_BINARY=\"${xz.bin}/bin/xz\" \ 24 24 -DPXZ_VERSION=\"${version}\" 25 25 ''; 26 26
+1 -1
pkgs/tools/graphics/jhead/default.nix
··· 17 17 18 18 substituteInPlace jhead.c \ 19 19 --replace "\" Compiled: \"__DATE__" "" \ 20 - --replace "jpegtran -trim" "${libjpeg}/bin/jpegtran -trim" 20 + --replace "jpegtran -trim" "${libjpeg.bin}/bin/jpegtran -trim" 21 21 ''; 22 22 23 23 installPhase = ''
+1 -1
pkgs/tools/networking/easyrsa/default.nix
··· 20 20 install -D -m755 easyrsa3/easyrsa $out/bin/easyrsa 21 21 substituteInPlace $out/bin/easyrsa \ 22 22 --subst-var out \ 23 - --subst-var-by openssl ${openssl}/bin/openssl 23 + --subst-var-by openssl ${openssl.bin}/bin/openssl 24 24 25 25 # Helper utility 26 26 cat > $out/bin/easyrsa-init <<EOF
+1 -1
pkgs/tools/typesetting/djvu2pdf/default.nix
··· 14 14 installPhase = '' 15 15 mkdir -p $out/bin 16 16 cp -p djvu2pdf $out/bin 17 - wrapProgram $out/bin/djvu2pdf --prefix PATH : ${ghostscript}/bin:${djvulibre}/bin:${which}/bin 17 + wrapProgram $out/bin/djvu2pdf --prefix PATH : ${ghostscript}/bin:${djvulibre.bin}/bin:${which}/bin 18 18 19 19 mkdir -p $out/man/man1 20 20 cp -p djvu2pdf.1.gz $out/man/man1
+1 -1
pkgs/tools/virtualization/ec2-ami-tools/default.nix
··· 29 29 for i in $out/bin/*; do 30 30 wrapProgram $i \ 31 31 --set EC2_HOME $out \ 32 - --prefix PATH : ${ruby}/bin:${openssl}/bin 32 + --prefix PATH : ${ruby}/bin:${openssl.bin}/bin 33 33 done 34 34 35 35 sed -i 's|/bin/bash|${stdenv.shell}|' $out/lib/ec2/platform/base/pipeline.rb
+1 -1
pkgs/top-level/python-packages.nix
··· 277 277 doCheck = false; 278 278 279 279 patchPhase = '' 280 - substituteInPlace acme_tiny.py --replace "openssl" "${pkgs.openssl}/bin/openssl" 280 + substituteInPlace acme_tiny.py --replace "openssl" "${pkgs.openssl.bin}/bin/openssl" 281 281 ''; 282 282 283 283 installPhase = ''