···2323 export LD_LIBRARY_PATH="${stdenv.lib.makeLibraryPath [gtk mono]}"
2424 # We need PATH from user env for xdg-open to find its tools, which
2525 # typically depend on the currently running desktop environment.
2626- export PATH="${avrgcclibc}/bin:${avrdude}/bin:${xdg_utils}/bin:\$PATH"
2626+ export PATH="${stdenv.lib.makeBinPath [ avrgcclibc avrdude xdg_utils ]}:\$PATH"
27272828 # avrdudess must have its resource files in its current working directory
2929 cd $out/avrdudess && exec ${mono}/bin/mono "$out/avrdudess/avrdudess.exe" "\$@"
···7474 cp $out/share/stumpwm/modules/util/stumpish/stumpish $out/bin/
7575 chmod +x $out/bin/stumpish
7676 wrapProgram $out/bin/stumpish \
7777- --prefix PATH ":" "${rlwrap}/bin:${gnused}/bin:${gnugrep}/bin:${coreutils}/bin:${xprop}/bin"
7777+ --prefix PATH ":" "${stdenv.lib.makeBinPath [ rlwrap gnused gnugrep coreutils xprop ]}"
78787979 # Paths in the compressed image $out/bin/stumpwm are not
8080 # recognized by Nix. Add explicit reference here.
+1-1
pkgs/build-support/vm/default.nix
···587587 buildCommand = ''
588588 ${createRootFS}
589589590590- PATH=$PATH:${dpkg}/bin:${dpkg}/bin:${glibc.bin}/bin:${lzma.bin}/bin
590590+ PATH=$PATH:${stdenv.lib.makeBinPath [ dpkg dpkg glibc lzma ]}
591591592592 # Unpack the .debs. We do this to prevent pre-install scripts
593593 # (which have lots of circular dependencies) from barfing.
···3939 # Add some stuff to PATH so the scripts can run without problems.
4040 for f in $out/bin/*; do
4141 wrapProgram $f \
4242- --prefix PATH ":" "${erlang}/bin:${coreutils}/bin:${bash}/bin:$out/bin"
4242+ --prefix PATH ":" "${stdenv.lib.makeBinPath [ erlang coreutils bash ]}:$out/bin"
4343 substituteInPlace $f --replace "/usr/bin/env" "${coreutils}/bin/env"
4444 done
4545 '';
···2222 done
23232424 # We need a way to pass $PATH to the scripts
2525- sed -i '2iexport PATH=${git}/bin:${mariadb}/bin:${which}/bin:${procps}/bin:${coreutils}/bin' src/program/snabbnfv/neutron_sync_master/neutron_sync_master.sh.inc
2626- sed -i '2iexport PATH=${git}/bin:${coreutils}/bin:${diffutils}/bin:${nettools}/bin' src/program/snabbnfv/neutron_sync_agent/neutron_sync_agent.sh.inc
2525+ sed -i '2iexport PATH=${stdenv.lib.makeBinPath [ git mariadb which procps coreutils ]}' src/program/snabbnfv/neutron_sync_master/neutron_sync_master.sh.inc
2626+ sed -i '2iexport PATH=${stdenv.lib.makeBinPath [ git coreutils diffutils nettools ]}' src/program/snabbnfv/neutron_sync_agent/neutron_sync_agent.sh.inc
2727 '';
28282929 installPhase = ''