treewide: Use makeBinPath

This commit is contained in:
Tuomas Tynkkynen 2016-08-23 01:06:51 +03:00
parent c255395219
commit 74a3a2cd7e
65 changed files with 71 additions and 71 deletions

View File

@ -121,7 +121,7 @@ let
makeWrapper ${cfg.packages.gitlab.env}/bin/bundle $out/bin/gitlab-bundle \ makeWrapper ${cfg.packages.gitlab.env}/bin/bundle $out/bin/gitlab-bundle \
${concatStrings (mapAttrsToList (name: value: "--set ${name} '${value}' ") gitlabEnv)} \ ${concatStrings (mapAttrsToList (name: value: "--set ${name} '${value}' ") gitlabEnv)} \
--set GITLAB_CONFIG_PATH '${cfg.statePath}/config' \ --set GITLAB_CONFIG_PATH '${cfg.statePath}/config' \
--set PATH '${pkgs.nodejs}/bin:${pkgs.gzip}/bin:${config.services.postgresql.package}/bin:$PATH' \ --set PATH '${stdenv.lib.makeBinPath [ pkgs.nodejs pkgs.gzip config.services.postgresql.package ]}:$PATH' \
--set RAKEOPT '-f ${cfg.packages.gitlab}/share/gitlab/Rakefile' \ --set RAKEOPT '-f ${cfg.packages.gitlab}/share/gitlab/Rakefile' \
--run 'cd ${cfg.packages.gitlab}/share/gitlab' --run 'cd ${cfg.packages.gitlab}/share/gitlab'
makeWrapper $out/bin/gitlab-bundle $out/bin/gitlab-rake \ makeWrapper $out/bin/gitlab-bundle $out/bin/gitlab-rake \

View File

@ -20,7 +20,7 @@ in
postVM = postVM =
'' ''
PATH=$PATH:${pkgs.gnutar}/bin:${pkgs.gzip}/bin PATH=$PATH:${stdenv.lib.makeBinPath [ pkgs.gnutar pkgs.gzip ]}
pushd $out pushd $out
${pkgs.qemu_kvm}/bin/qemu-img convert -c -O qcow2 $diskImageBase nixos.qcow2 ${pkgs.qemu_kvm}/bin/qemu-img convert -c -O qcow2 $diskImageBase nixos.qcow2
rm $diskImageBase rm $diskImageBase

View File

@ -23,7 +23,7 @@ in
postVM = postVM =
'' ''
PATH=$PATH:${pkgs.gnutar}/bin:${pkgs.gzip}/bin PATH=$PATH:${stdenv.lib.makeBinPath [ pkgs.gnutar pkgs.gzip ]}
pushd $out pushd $out
mv $diskImageBase disk.raw mv $diskImageBase disk.raw
tar -Szcf $diskImageBase.tar.gz disk.raw tar -Szcf $diskImageBase.tar.gz disk.raw

View File

@ -9,7 +9,7 @@ let
miniInit = '' miniInit = ''
#!${pkgs.stdenv.shell} -xe #!${pkgs.stdenv.shell} -xe
export PATH="${pkgs.coreutils}/bin:${pkgs.utillinux}/bin" export PATH="${stdenv.lib.makeBinPath [ pkgs.coreutils pkgs.utillinux ]}"
mkdir -p /var/run/dbus mkdir -p /var/run/dbus
cat > /etc/passwd <<EOF cat > /etc/passwd <<EOF

View File

@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
postFixup = '' postFixup = ''
for executable in $(cd $out/bin && ls); do for executable in $(cd $out/bin && ls); do
wrapProgram $out/bin/$executable \ wrapProgram $out/bin/$executable \
--prefix PATH : "${bc}/bin:${findutils}/bin:${sox}/bin:${procps}/bin:${opusTools}/bin:${lame}/bin:${flac.bin}/bin" --prefix PATH : "${stdenv.lib.makeBinPath [ bc findutils sox procps opusTools lame flac ]}"
done done
''; '';

View File

@ -32,7 +32,7 @@ stdenv.mkDerivation {
mkdir -p $out/bin mkdir -p $out/bin
cp -a netbeans $out cp -a netbeans $out
makeWrapper $out/netbeans/bin/netbeans $out/bin/netbeans \ makeWrapper $out/netbeans/bin/netbeans $out/bin/netbeans \
--prefix PATH : ${jdk}/bin:${which}/bin \ --prefix PATH : ${stdenv.lib.makeBinPath [ jdk which ]} \
--prefix JAVA_HOME : ${jdk.home} \ --prefix JAVA_HOME : ${jdk.home} \
--add-flags "--jdkhome ${jdk.home}" --add-flags "--jdkhome ${jdk.home}"

View File

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
# Allow geeqie to find exiv2 and exiftran, necessary to # Allow geeqie to find exiv2 and exiftran, necessary to
# losslessly rotate JPEG images. # losslessly rotate JPEG images.
sed -i $out/lib/geeqie/geeqie-rotate \ sed -i $out/lib/geeqie/geeqie-rotate \
-e '1 a export PATH=${exiv2}/bin:${fbida}/bin:$PATH' -e '1 a export PATH=${stdenv.lib.makeBinPath [ exiv2 fbida ]}:$PATH'
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -21,10 +21,10 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin mkdir -p $out/bin
cp -r linux/work/* $out/${name}/ cp -r linux/work/* $out/${name}/
makeWrapper $out/${name}/processing $out/bin/processing \ makeWrapper $out/${name}/processing $out/bin/processing \
--prefix PATH : "${jdk}/bin:${which}/bin" \ --prefix PATH : "${stdenv.lib.makeBinPath [ jdk which ]}" \
--prefix LD_LIBRARY_PATH : ${libXxf86vm}/lib --prefix LD_LIBRARY_PATH : ${libXxf86vm}/lib
makeWrapper $out/${name}/processing-java $out/bin/processing-java \ makeWrapper $out/${name}/processing-java $out/bin/processing-java \
--prefix PATH : "${jdk}/bin:${which}/bin" \ --prefix PATH : "${stdenv.lib.makeBinPath [ jdk which ]}" \
--prefix LD_LIBRARY_PATH : ${libXxf86vm}/lib --prefix LD_LIBRARY_PATH : ${libXxf86vm}/lib
ln -s ${jdk} $out/${name}/java ln -s ${jdk} $out/${name}/java
''; '';

View File

@ -17,7 +17,7 @@ stdenv.mkDerivation {
ln -s $out/{nix-support,bin}/wavesurfer.tcl ln -s $out/{nix-support,bin}/wavesurfer.tcl
wrapProgram "$out/nix-support/wavesurfer.tcl" \ wrapProgram "$out/nix-support/wavesurfer.tcl" \
--set TCLLIBPATH "${snack}/lib" \ --set TCLLIBPATH "${snack}/lib" \
--prefix PATH : "${tcl}/bin:${tk}/bin" --prefix PATH : "${stdenv.lib.makeBinPath [ tcl tk ]}"
''; '';
meta = { meta = {

View File

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
export LD_LIBRARY_PATH="${stdenv.lib.makeLibraryPath [gtk mono]}" export LD_LIBRARY_PATH="${stdenv.lib.makeLibraryPath [gtk mono]}"
# We need PATH from user env for xdg-open to find its tools, which # We need PATH from user env for xdg-open to find its tools, which
# typically depend on the currently running desktop environment. # typically depend on the currently running desktop environment.
export PATH="${avrgcclibc}/bin:${avrdude}/bin:${xdg_utils}/bin:\$PATH" export PATH="${stdenv.lib.makeBinPath [ avrgcclibc avrdude xdg_utils ]}:\$PATH"
# avrdudess must have its resource files in its current working directory # avrdudess must have its resource files in its current working directory
cd $out/avrdudess && exec ${mono}/bin/mono "$out/avrdudess/avrdudess.exe" "\$@" cd $out/avrdudess && exec ${mono}/bin/mono "$out/avrdudess/avrdudess.exe" "\$@"

View File

@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
cp ding.png $out/share/pixmaps/ cp ding.png $out/share/pixmaps/
cp ding.desktop $out/share/applications/ cp ding.desktop $out/share/applications/
wrapProgram $out/bin/ding --prefix PATH : ${gnugrep}/bin:${aspellEnv}/bin:${tk}/bin:${fortune}/bin --prefix ASPELL_CONF : "\"prefix ${aspellEnv};\"" wrapProgram $out/bin/ding --prefix PATH : ${stdenv.lib.makeBinPath [ gnugrep aspellEnv tk fortune ]} --prefix ASPELL_CONF : "\"prefix ${aspellEnv};\""
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -18,7 +18,7 @@ buildPerlPackage {
installPhase = '' installPhase = ''
mkdir -p $out/bin $out/share/man/man1 mkdir -p $out/bin $out/share/man/man1
cp get_iplayer $out/bin cp get_iplayer $out/bin
wrapProgram $out/bin/get_iplayer --suffix PATH : ${ffmpeg.bin}/bin:${flvstreamer}/bin:${vlc}/bin:${rtmpdump}/bin --prefix PERL5LIB : $PERL5LIB wrapProgram $out/bin/get_iplayer --suffix PATH : ${stdenv.lib.makeBinPath [ ffmpeg flvstreamer vlc rtmpdump ]} --prefix PERL5LIB : $PERL5LIB
cp get_iplayer.1 $out/share/man/man1 cp get_iplayer.1 $out/share/man/man1
''; '';

View File

@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
mv * $out mv * $out
for n in $out/{bin,sbin}"/"*; do for n in $out/{bin,sbin}"/"*; do
wrapProgram $n --prefix PATH : "${which}/bin:${jre}/bin:${bash}/bin" --set JAVA_HOME "${jre}" --set HADOOP_PREFIX "$out" wrapProgram $n --prefix PATH : "${stdenv.lib.makeBinPath [ which jre bash ]}" --set JAVA_HOME "${jre}" --set HADOOP_PREFIX "$out"
done done
''; '';

View File

@ -38,9 +38,9 @@ stdenv.mkDerivation rec {
preFixup = '' preFixup = ''
wrapProgram "$out/bin/kube-proxy" --prefix PATH : "${iptables}/bin" wrapProgram "$out/bin/kube-proxy" --prefix PATH : "${iptables}/bin"
wrapProgram "$out/bin/kubelet" --prefix PATH : "${utillinux}/bin:${procps-ng}/bin" wrapProgram "$out/bin/kubelet" --prefix PATH : "${stdenv.lib.makeBinPath [ utillinux procps-ng ]}"
chmod +x "$out/libexec/kubernetes/safe_format_and_mount" chmod +x "$out/libexec/kubernetes/safe_format_and_mount"
wrapProgram "$out/libexec/kubernetes/safe_format_and_mount" --prefix PATH : "${e2fsprogs}/bin:${utillinux}/bin" wrapProgram "$out/libexec/kubernetes/safe_format_and_mount" --prefix PATH : "${stdenv.lib.makeBinPath [ e2fsprogs utillinux ]}"
substituteInPlace "$out"/libexec/kubernetes/cluster/update-storage-objects.sh \ substituteInPlace "$out"/libexec/kubernetes/cluster/update-storage-objects.sh \
--replace KUBE_OUTPUT_HOSTBIN KUBE_BIN --replace KUBE_OUTPUT_HOSTBIN KUBE_BIN
''; '';

View File

@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
for n in $out/{bin,sbin}"/"*; do for n in $out/{bin,sbin}"/"*; do
wrapProgram $n \ wrapProgram $n \
--prefix PATH : "${jre}/bin:${bash}/bin" \ --prefix PATH : "${stdenv.lib.makeBinPath [ jre bash ]}" \
--set JAVA_HOME "${jre}" --set HADOOP_PREFIX "${hadoop}" --set JAVA_HOME "${jre}" --set HADOOP_PREFIX "${hadoop}"
done done
''; '';

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation {
postInstall = '' postInstall = ''
sed <"frontends/snipe" >"$out/bin/snipe" \ sed <"frontends/snipe" >"$out/bin/snipe" \
-e "2i export PATH=\"$out/bin:${coreutils}/bin:${gawk}/bin:${bash}/bin:${which}/bin:\$PATH\"" -e "2i export PATH=\"$out/bin:${stdenv.lib.makeBinPath [ coreutils gawk bash which ]}:\$PATH\""
chmod 555 "$out/bin/snipe" chmod 555 "$out/bin/snipe"
''; '';

View File

@ -19,7 +19,7 @@ stdenv.mkDerivation {
''; '';
passthru = { passthru = {
wrapArgs = "--prefix PATH ':' ${texLive}/bin:${imagemagick.out}/bin"; wrapArgs = "--prefix PATH ':' ${stdenv.lib.makeBinPath [ texLive imagemagick ]}";
}; };
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -21,7 +21,7 @@ pythonPackages.buildPythonApplication rec {
postInstall = '' postInstall = ''
wrapProgram $out/bin/mailpile \ wrapProgram $out/bin/mailpile \
--prefix PATH ":" "${gnupg1orig}/bin:${openssl.bin}/bin" --prefix PATH ":" "${stdenv.lib.makeBinPath [ gnupg1orig openssl ]}"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -25,7 +25,7 @@ stdenv.mkDerivation rec
make install make install
wrapProgram $out/bin/seafile-applet \ wrapProgram $out/bin/seafile-applet \
--suffix PATH : ${ccnet}/bin:${seafile-shared}/bin --suffix PATH : ${stdenv.lib.makeBinPath [ ccnet seafile-shared ]}
''; '';
meta = meta =

View File

@ -72,7 +72,7 @@ stdenv.mkDerivation rec {
--set GCONF_CONFIG_SOURCE 'xml::~/.gconf' \ --set GCONF_CONFIG_SOURCE 'xml::~/.gconf' \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share/gsettings-schemas/${name}" \ --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share/gsettings-schemas/${name}" \
--prefix GIO_EXTRA_MODULES : "${dconf}/lib/gio/modules" \ --prefix GIO_EXTRA_MODULES : "${dconf}/lib/gio/modules" \
--prefix PATH ":" "$out/bin:${perl}/bin:${gconf}/bin" --prefix PATH ":" "$out/bin:${stdenv.lib.makeBinPath [ perl gconf ]}"
done done
rm $out/share/icons/hicolor/icon-theme.cache rm $out/share/icons/hicolor/icon-theme.cache

View File

@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
--prefix LD_LIBRARY_PATH ":" "${libbonoboui}/lib/libglade/2.0" \ --prefix LD_LIBRARY_PATH ":" "${libbonoboui}/lib/libglade/2.0" \
--prefix PERL5LIB ":" "$PERL5LIB" \ --prefix PERL5LIB ":" "$PERL5LIB" \
--set GCONF_CONFIG_SOURCE 'xml::~/.gconf' \ --set GCONF_CONFIG_SOURCE 'xml::~/.gconf' \
--prefix PATH ":" "$out/bin:${perl}/bin:${gconf}/bin" --prefix PATH ":" "$out/bin:${stdenv.lib.makeBinPath [ perl gconf ]}"
done done
rm $out/share/icons/hicolor/icon-theme.cache rm $out/share/icons/hicolor/icon-theme.cache

View File

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
for f in $out/bin/*; do #*/ for f in $out/bin/*; do #*/
wrapProgram $f --prefix PATH : "${xdpyinfo}/bin:${wmctrl}/bin/:${byzanz}/bin/:${gnome3.gnome_terminal}/bin/:$out/bin" wrapProgram $f --prefix PATH : "${stdenv.lib.makeBinPath [ xdpyinfo wmctrl byzanz gnome3.gnome_terminal ]}:$out/bin"
done done
rm -r screenkey/.bzr rm -r screenkey/.bzr

View File

@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
cp docker-gc $out/bin cp docker-gc $out/bin
chmod +x $out/bin/docker-gc chmod +x $out/bin/docker-gc
wrapProgram $out/bin/docker-gc \ wrapProgram $out/bin/docker-gc \
--prefix PATH : "${docker}/bin:${coreutils}/bin:${procps}/bin:${gnused}/bin:${findutils}/bin:${gnugrep}/bin" --prefix PATH : "${stdenv.lib.makeBinPath [ docker coreutils procps gnused findutils gnugrep ]}"
''; '';
meta = { meta = {

View File

@ -74,7 +74,7 @@ stdenv.mkDerivation rec {
cp $out/share/stumpwm/modules/util/stumpish/stumpish $out/bin/ cp $out/share/stumpwm/modules/util/stumpish/stumpish $out/bin/
chmod +x $out/bin/stumpish chmod +x $out/bin/stumpish
wrapProgram $out/bin/stumpish \ wrapProgram $out/bin/stumpish \
--prefix PATH ":" "${rlwrap}/bin:${gnused}/bin:${gnugrep}/bin:${coreutils}/bin:${xprop}/bin" --prefix PATH ":" "${stdenv.lib.makeBinPath [ rlwrap gnused gnugrep coreutils xprop ]}"
# Paths in the compressed image $out/bin/stumpwm are not # Paths in the compressed image $out/bin/stumpwm are not
# recognized by Nix. Add explicit reference here. # recognized by Nix. Add explicit reference here.

View File

@ -587,7 +587,7 @@ rec {
buildCommand = '' buildCommand = ''
${createRootFS} ${createRootFS}
PATH=$PATH:${dpkg}/bin:${dpkg}/bin:${glibc.bin}/bin:${lzma.bin}/bin PATH=$PATH:${stdenv.lib.makeBinPath [ dpkg dpkg glibc lzma ]}
# Unpack the .debs. We do this to prevent pre-install scripts # Unpack the .debs. We do this to prevent pre-install scripts
# (which have lots of circular dependencies) from barfing. # (which have lots of circular dependencies) from barfing.

View File

@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
wrapProgram "$prog" \ wrapProgram "$prog" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \ --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
--prefix XDG_DATA_DIRS : "${gnome3.gnome_themes_standard}/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \ --prefix XDG_DATA_DIRS : "${gnome3.gnome_themes_standard}/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
--prefix PATH : "${mtools}/bin:${cdrkit}/bin:${libcdio}/bin:${qemu}/bin" --prefix PATH : "${stdenv.lib.makeBinPath [ mtools cdrkit libcdio qemu ]}"
done done
''; '';

View File

@ -60,7 +60,7 @@ stdenv.mkDerivation rec {
for i in "$out/bin/"*; do for i in "$out/bin/"*; do
test ! -h $i || continue test ! -h $i || continue
egrep --quiet '^#!' <(head -n 1 $i) || continue egrep --quiet '^#!' <(head -n 1 $i) || continue
sed -i -e '2i export PATH="$PATH:${binutils}/bin:${coreutils}/bin"' $i sed -i -e '2i export PATH="$PATH:${stdenv.lib.makeBinPath [ binutils coreutils ]}"' $i
done done
''; '';

View File

@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
for i in "$out/bin/"*; do for i in "$out/bin/"*; do
test ! -h $i || continue test ! -h $i || continue
egrep --quiet '^#!' <(head -n 1 $i) || continue egrep --quiet '^#!' <(head -n 1 $i) || continue
sed -i -e '2i export PATH="$PATH:${binutils}/bin:${coreutils}/bin"' $i sed -i -e '2i export PATH="$PATH:${stdenv.lib.makeBinPath [ binutils coreutils ]}"' $i
done done
''; '';

View File

@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
for i in "$out/bin/"*; do for i in "$out/bin/"*; do
test ! -h $i || continue test ! -h $i || continue
egrep --quiet '^#!' <(head -n 1 $i) || continue egrep --quiet '^#!' <(head -n 1 $i) || continue
sed -i -e '2i export PATH="$PATH:${binutils}/bin:${coreutils}/bin"' $i sed -i -e '2i export PATH="$PATH:${stdenv.lib.makeBinPath [ binutils coreutils ]}"' $i
done done
''; '';

View File

@ -61,7 +61,7 @@ in stdenv.mkDerivation rec {
for i in "$out/bin/"*; do for i in "$out/bin/"*; do
test ! -h $i || continue test ! -h $i || continue
egrep --quiet '^#!' <(head -n 1 $i) || continue egrep --quiet '^#!' <(head -n 1 $i) || continue
sed -i -e '2i export PATH="$PATH:${binutils}/bin:${coreutils}/bin"' $i sed -i -e '2i export PATH="$PATH:${stdenv.lib.makeBinPath [ binutils coreutils ]}"' $i
done done
''; '';

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
make install PREFIX=$out make install PREFIX=$out
wrapProgram $out/bin/microscheme \ wrapProgram $out/bin/microscheme \
--prefix PATH : "${avrdude}/bin:${avrgcclibc}/bin" --prefix PATH : "${stdenv.lib.makeBinPath [ avrdude avrgcclibc ]}"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
postPatch = '' postPatch = ''
for i in squeak.in squeak.sh.in; do for i in squeak.in squeak.sh.in; do
substituteInPlace unix/cmake/$i --replace "PATH=" \ substituteInPlace unix/cmake/$i --replace "PATH=" \
"PATH=${coreutils}/bin:${gnused}/bin:${which}/bin #" "PATH=${stdenv.lib.makeBinPath [ coreutils gnused which ]} #"
done done
''; '';

View File

@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
b=$(basename $f) b=$(basename $f)
if [ $b == "mix" ]; then continue; fi if [ $b == "mix" ]; then continue; fi
wrapProgram $f \ wrapProgram $f \
--prefix PATH ":" "${erlang}/bin:${coreutils}/bin:${curl.bin}/bin:${bash}/bin" \ --prefix PATH ":" "${stdenv.lib.makeBinPath [ erlang coreutils curl bash ]}" \
--set CURL_CA_BUNDLE /etc/ssl/certs/ca-certificates.crt --set CURL_CA_BUNDLE /etc/ssl/certs/ca-certificates.crt
done done

View File

@ -52,7 +52,7 @@ stdenv.mkDerivation rec {
# Some erlang bin/ scripts run sed and awk # Some erlang bin/ scripts run sed and awk
postFixup = '' postFixup = ''
wrapProgram $out/lib/erlang/bin/erl --prefix PATH ":" "${gnused}/bin/" wrapProgram $out/lib/erlang/bin/erl --prefix PATH ":" "${gnused}/bin/"
wrapProgram $out/lib/erlang/bin/start_erl --prefix PATH ":" "${gnused}/bin/:${gawk}/bin" wrapProgram $out/lib/erlang/bin/start_erl --prefix PATH ":" "${stdenv.lib.makeBinPath [ gnused gawk ]}"
''; '';
setupHook = ./setup-hook.sh; setupHook = ./setup-hook.sh;

View File

@ -69,7 +69,7 @@ stdenv.mkDerivation rec {
# Some erlang bin/ scripts run sed and awk # Some erlang bin/ scripts run sed and awk
postFixup = '' postFixup = ''
wrapProgram $out/lib/erlang/bin/erl --prefix PATH ":" "${gnused}/bin/" wrapProgram $out/lib/erlang/bin/erl --prefix PATH ":" "${gnused}/bin/"
wrapProgram $out/lib/erlang/bin/start_erl --prefix PATH ":" "${gnused}/bin/:${gawk}/bin" wrapProgram $out/lib/erlang/bin/start_erl --prefix PATH ":" "${stdenv.lib.makeBinPath [ gnused gawk ]}"
''; '';
setupHook = ./setup-hook.sh; setupHook = ./setup-hook.sh;

View File

@ -80,7 +80,7 @@ stdenv.mkDerivation rec {
# Some erlang bin/ scripts run sed and awk # Some erlang bin/ scripts run sed and awk
postFixup = '' postFixup = ''
wrapProgram $out/lib/erlang/bin/erl --prefix PATH ":" "${gnused}/bin/" wrapProgram $out/lib/erlang/bin/erl --prefix PATH ":" "${gnused}/bin/"
wrapProgram $out/lib/erlang/bin/start_erl --prefix PATH ":" "${gnused}/bin/:${gawk}/bin" wrapProgram $out/lib/erlang/bin/start_erl --prefix PATH ":" "${stdenv.lib.makeBinPath [ gnused gawk ]}"
''; '';
setupHook = ./setup-hook.sh; setupHook = ./setup-hook.sh;

View File

@ -74,7 +74,7 @@ stdenv.mkDerivation rec {
# Some erlang bin/ scripts run sed and awk # Some erlang bin/ scripts run sed and awk
postFixup = '' postFixup = ''
wrapProgram $out/lib/erlang/bin/erl --prefix PATH ":" "${gnused}/bin/" wrapProgram $out/lib/erlang/bin/erl --prefix PATH ":" "${gnused}/bin/"
wrapProgram $out/lib/erlang/bin/start_erl --prefix PATH ":" "${gnused}/bin/:${gawk}/bin" wrapProgram $out/lib/erlang/bin/start_erl --prefix PATH ":" "${stdenv.lib.makeBinPath [ gnused gawk ]}"
''; '';
setupHook = ./setup-hook.sh; setupHook = ./setup-hook.sh;

View File

@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
# Add some stuff to PATH so the scripts can run without problems. # Add some stuff to PATH so the scripts can run without problems.
for f in $out/bin/*; do for f in $out/bin/*; do
wrapProgram $f \ wrapProgram $f \
--prefix PATH ":" "${erlang}/bin:${coreutils}/bin:${bash}/bin:$out/bin" --prefix PATH ":" "${stdenv.lib.makeBinPath [ erlang coreutils bash ]}:$out/bin"
substituteInPlace $f --replace "/usr/bin/env" "${coreutils}/bin/env" substituteInPlace $f --replace "/usr/bin/env" "${coreutils}/bin/env"
done done
''; '';

View File

@ -83,7 +83,7 @@ stdenv.mkDerivation rec {
for i in emulator emulator64-arm emulator64-mips emulator64-x86 emulator64-crash-service for i in emulator emulator64-arm emulator64-mips emulator64-x86 emulator64-crash-service
do do
wrapProgram `pwd`/$i \ wrapProgram `pwd`/$i \
--prefix PATH : ${file}/bin:${glxinfo}/bin \ --prefix PATH : ${stdenv.lib.makeBinPath [ file glxinfo ]} \
--suffix LD_LIBRARY_PATH : `pwd`/lib64:`pwd`/lib64/qt/lib:${makeLibraryPath [ stdenv.cc.cc libX11 libxcb libXau libXdmcp libXext mesa alsaLib zlib libpulseaudio ]} \ --suffix LD_LIBRARY_PATH : `pwd`/lib64:`pwd`/lib64/qt/lib:${makeLibraryPath [ stdenv.cc.cc libX11 libxcb libXau libXdmcp libXext mesa alsaLib zlib libpulseaudio ]} \
--suffix QT_XKB_CONFIG_ROOT : ${xkeyboardconfig}/share/X11/xkb --suffix QT_XKB_CONFIG_ROOT : ${xkeyboardconfig}/share/X11/xkb
done done

View File

@ -18,6 +18,6 @@ chmod -v 755 $out_bin
patchShebangs $out patchShebangs $out
wrapProgram $out_bin \ wrapProgram $out_bin \
--prefix PATH ":" "${rlwrap}/bin:${coreutils}/bin:${findutils}/bin" \ --prefix PATH ":" "${stdenv.lib.makeBinPath [ rlwrap coreutils findutils ]}" \
--set LEIN_GPG ${gnupg1compat}/bin/gpg \ --set LEIN_GPG ${gnupg1compat}/bin/gpg \
--set JAVA_CMD ${jdk}/bin/java --set JAVA_CMD ${jdk}/bin/java

View File

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
substituteInPlace $out/share/bootstrap.sh \ substituteInPlace $out/share/bootstrap.sh \
--replace "#!/bin/bash" "#!$(type -P bash)" --replace "#!/bin/bash" "#!$(type -P bash)"
wrapProgram $out/bin/buildkite-agent \ wrapProgram $out/bin/buildkite-agent \
--set PATH '"${openssh}/bin/:${git}/bin:${coreutils}/bin:${gnused}/bin:${gnugrep}/bin:$PATH"' --set PATH '"${stdenv.lib.makeBinPath [ openssh git coreutils gnused gnugrep ]}:$PATH"'
''; '';
meta = { meta = {

View File

@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
makeWrapper ${env}/bin/cide $out/bin/cide \ makeWrapper ${env}/bin/cide $out/bin/cide \
--set PATH ${docker}/bin:${git}/bin:${gnutar}/bin:${gzip}/bin --set PATH ${stdenv.lib.makeBinPath [ docker git gnutar gzip ]}
''; '';
meta = with lib; { meta = with lib; {

View File

@ -9,7 +9,7 @@ let
ihaskellSh = writeScriptBin "ihaskell-notebook" '' ihaskellSh = writeScriptBin "ihaskell-notebook" ''
#! ${stdenv.shell} #! ${stdenv.shell}
export GHC_PACKAGE_PATH="$(echo ${ihaskellEnv}/lib/*/package.conf.d| tr ' ' ':'):$GHC_PACKAGE_PATH" export GHC_PACKAGE_PATH="$(echo ${ihaskellEnv}/lib/*/package.conf.d| tr ' ' ':'):$GHC_PACKAGE_PATH"
export PATH="${ihaskell}/bin:${ihaskellEnv}/bin:${ipython}/bin" export PATH="${stdenv.lib.makeBinPath [ ihaskell ihaskellEnv ipython ]}"
${ihaskell}/bin/ihaskell install -l $(${ihaskellEnv}/bin/ghc --print-libdir) && ${ipython}/bin/ipython notebook --kernel=haskell ${ihaskell}/bin/ihaskell install -l $(${ihaskellEnv}/bin/ghc --print-libdir) && ${ipython}/bin/ipython notebook --kernel=haskell
''; '';
profile = "${ihaskell.pname}-${ihaskell.version}/profile/profile.tar"; profile = "${ihaskell.pname}-${ihaskell.version}/profile/profile.tar";

View File

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
wrapProgram $out/bin/ab{put,build}-sourceforge \ wrapProgram $out/bin/ab{put,build}-sourceforge \
--prefix PATH ":" "${openssh}/bin:${rsync}/bin" --prefix PATH ":" "${stdenv.lib.makeBinPath [ openssh rsync ]}"
''; '';
meta = { meta = {

View File

@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
mkdir -p "$out" mkdir -p "$out"
cp -r . "$out/src" cp -r . "$out/src"
mkdir "$out/bin" mkdir "$out/bin"
wrapProgram "$out/src/drush" --prefix PATH : "${which}/bin:${php}/bin:${bash}/bin:${coreutils}/bin:${ncurses.out}/bin" wrapProgram "$out/src/drush" --prefix PATH : "${stdenv.lib.makeBinPath [ which php bash coreutils ncurses ]}"
ln -s "$out/src/drush" "$out/bin/drush" ln -s "$out/src/drush" "$out/bin/drush"
''; '';
} }

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
mv * $out/libexec/kibana/ mv * $out/libexec/kibana/
rm -r $out/libexec/kibana/node rm -r $out/libexec/kibana/node
makeWrapper $out/libexec/kibana/bin/kibana $out/bin/kibana \ makeWrapper $out/libexec/kibana/bin/kibana $out/bin/kibana \
--prefix PATH : "${nodejs}/bin:${coreutils}/bin:${which}/bin" --prefix PATH : "${stdenv.lib.makeBinPath [ nodejs coreutils which ]}"
sed -i 's@NODE=.*@NODE=${nodejs}/bin/node@' $out/libexec/kibana/bin/kibana sed -i 's@NODE=.*@NODE=${nodejs}/bin/node@' $out/libexec/kibana/bin/kibana
''; '';

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
cp -a * $out/ cp -a * $out/
substituteInPlace $out/bin/OpenGrok --replace /bin/uname ${coreutils}/bin/uname substituteInPlace $out/bin/OpenGrok --replace /bin/uname ${coreutils}/bin/uname
wrapProgram $out/bin/OpenGrok \ wrapProgram $out/bin/OpenGrok \
--prefix PATH : "${ctags}/bin:${git}/bin" \ --prefix PATH : "${stdenv.lib.makeBinPath [ ctags git ]}" \
--set JAVA_HOME "${jre}" \ --set JAVA_HOME "${jre}" \
--set OPENGROK_TOMCAT_BASE "/var/tomcat" --set OPENGROK_TOMCAT_BASE "/var/tomcat"
''; '';

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
cp bin/run.sh $out/bin/elasticmq cp bin/run.sh $out/bin/elasticmq
substituteInPlace $out/bin/elasticmq --replace '-DBASEDIR=$BASEDIR' '-DBASEDIR=''${ELASTICMQ_DATA_PREFIX:-.}' substituteInPlace $out/bin/elasticmq --replace '-DBASEDIR=$BASEDIR' '-DBASEDIR=''${ELASTICMQ_DATA_PREFIX:-.}'
wrapProgram $out/bin/elasticmq --prefix PATH : "${which}/bin:${jre}/bin" wrapProgram $out/bin/elasticmq --prefix PATH : "${stdenv.lib.makeBinPath [ which jre ]}"
''; '';
meta = { meta = {

View File

@ -23,9 +23,9 @@ stdenv.mkDerivation rec {
mkdir -p "$out/bin" mkdir -p "$out/bin"
makeWrapper "$out/share/neo4j/bin/neo4j" "$out/bin/neo4j" \ makeWrapper "$out/share/neo4j/bin/neo4j" "$out/bin/neo4j" \
--prefix PATH : "${jre}/bin:${which}/bin:${gnused}/bin" --prefix PATH : "${stdenv.lib.makeBinPath [ jre which gnused ]}"
makeWrapper "$out/share/neo4j/bin/neo4j-shell" "$out/bin/neo4j-shell" \ makeWrapper "$out/share/neo4j/bin/neo4j-shell" "$out/bin/neo4j-shell" \
--prefix PATH : "${jre}/bin:${which}/bin:${gnused}/bin" --prefix PATH : "${stdenv.lib.makeBinPath [ jre which gnused ]}"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -51,7 +51,7 @@ in buildPythonApplication rec {
--set XPRA_LOG_DIR "\$HOME/.xpra" \ --set XPRA_LOG_DIR "\$HOME/.xpra" \
--set XPRA_INSTALL_PREFIX "$out" \ --set XPRA_INSTALL_PREFIX "$out" \
--prefix LD_LIBRARY_PATH : ${libfakeXinerama}/lib \ --prefix LD_LIBRARY_PATH : ${libfakeXinerama}/lib \
--prefix PATH : ${getopt}/bin:${xorgserver.out}/bin:${xauth}/bin:${which}/bin:${utillinux}/bin --prefix PATH : ${stdenv.lib.makeBinPath [ getopt xorgserver xauth which utillinux ]}
''; '';
preCheck = "exit 0"; preCheck = "exit 0";
@ -60,7 +60,7 @@ in buildPythonApplication rec {
#postFixup = '' #postFixup = ''
# sed -i '2iexport XKB_BINDIR="${xkbcomp}/bin"' $out/bin/xpra # sed -i '2iexport XKB_BINDIR="${xkbcomp}/bin"' $out/bin/xpra
# sed -i '3iexport FONTCONFIG_FILE="${fontsConf}"' $out/bin/xpra # sed -i '3iexport FONTCONFIG_FILE="${fontsConf}"' $out/bin/xpra
# sed -i '4iexport PATH=${getopt}/bin:${xorgserver.out}/bin:${xauth}/bin:${which}/bin:${utillinux}/bin\${PATH:+:}\$PATH' $out/bin/xpra # sed -i '4iexport PATH=${stdenv.lib.makeBinPath [ getopt xorgserver xauth which utillinux ]}\${PATH:+:}\$PATH' $out/bin/xpra
#''; #'';

View File

@ -54,7 +54,7 @@ buildPythonApplication rec {
--set XKB_BINDIR "${xkbcomp}/bin" \ --set XKB_BINDIR "${xkbcomp}/bin" \
--set FONTCONFIG_FILE "${fontsConf}" \ --set FONTCONFIG_FILE "${fontsConf}" \
--prefix LD_LIBRARY_PATH : ${libfakeXinerama}/lib \ --prefix LD_LIBRARY_PATH : ${libfakeXinerama}/lib \
--prefix PATH : ${getopt}/bin:${xorgserver.out}/bin:${xauth}/bin:${which}/bin:${utillinux}/bin --prefix PATH : ${stdenv.lib.makeBinPath [ getopt xorgserver xauth which utillinux ]}
''; '';
preCheck = "exit 0"; preCheck = "exit 0";
@ -64,7 +64,7 @@ buildPythonApplication rec {
#postFixup = '' #postFixup = ''
# sed -i '2iexport XKB_BINDIR="${xkbcomp}/bin"' $out/bin/xpra # sed -i '2iexport XKB_BINDIR="${xkbcomp}/bin"' $out/bin/xpra
# sed -i '3iexport FONTCONFIG_FILE="${fontsConf}"' $out/bin/xpra # sed -i '3iexport FONTCONFIG_FILE="${fontsConf}"' $out/bin/xpra
# sed -i '4iexport PATH=${getopt}/bin:${xorgserver.out}/bin:${xauth}/bin:${which}/bin:${utillinux}/bin\${PATH:+:}\$PATH' $out/bin/xpra # sed -i '4iexport PATH=${stdenv.lib.makeBinPath [ getopt xorgserver xauth which utillinux ]}\${PATH:+:}\$PATH' $out/bin/xpra
#''; #'';

View File

@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
wrapProgram $out/sbin/btrbk \ wrapProgram $out/sbin/btrbk \
--set PERL5LIB $PERL5LIB \ --set PERL5LIB $PERL5LIB \
--prefix PATH ':' "${btrfs-progs}/bin:${bash}/bin/" --prefix PATH ':' "${stdenv.lib.makeBinPath [ btrfs-progs bash ]}"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -16,7 +16,7 @@ in stdenv.mkDerivation {
python setup.py install --prefix=$out python setup.py install --prefix=$out
wrapProgram $out/bin/duplicity \ wrapProgram $out/bin/duplicity \
--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${pycrypto}):$(toPythonPath ${ecdsa}):$(toPythonPath ${paramiko}):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})" \ --prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${pycrypto}):$(toPythonPath ${ecdsa}):$(toPythonPath ${paramiko}):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})" \
--prefix PATH : "${gnupg}/bin:${ncftp}/bin" --prefix PATH : "${stdenv.lib.makeBinPath [ gnupg ncftp ]}"
wrapProgram $out/bin/rdiffdir \ wrapProgram $out/bin/rdiffdir \
--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${pycrypto}):$(toPythonPath ${ecdsa}):$(toPythonPath ${paramiko}):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})" --prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${pycrypto}):$(toPythonPath ${ecdsa}):$(toPythonPath ${paramiko}):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})"
''; '';

View File

@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
for p in $out/bin/* for p in $out/bin/*
do wrapProgram "$p" \ do wrapProgram "$p" \
--prefix PERL5LIB ":" "${perlPackages.DBFile}/lib/perl5/site_perl" \ --prefix PERL5LIB ":" "${perlPackages.DBFile}/lib/perl5/site_perl" \
--prefix PATH ":" "${which}/bin:${bzip2.bin}/bin" --prefix PATH ":" "${stdenv.lib.makeBinPath [ which bzip2 ]}"
done done
patchShebangs $out patchShebangs $out

View File

@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
cp unetbootin.desktop $out/share/applications cp unetbootin.desktop $out/share/applications
wrapProgram $out/bin/unetbootin \ wrapProgram $out/bin/unetbootin \
--prefix PATH : ${which}/bin:${p7zip}/bin:${mtools}/bin --prefix PATH : ${stdenv.lib.makeBinPath [ which p7zip mtools ]}
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -39,7 +39,7 @@ stdenv.mkDerivation {
cp -R *.py pylrs $PYDIR cp -R *.py pylrs $PYDIR
wrapProgram $out/bin/pdfread.py --prefix PYTHONPATH : $PYTHONPATH:${pillow}/$LIBSUFFIX/PIL:$PYDIR \ wrapProgram $out/bin/pdfread.py --prefix PYTHONPATH : $PYTHONPATH:${pillow}/$LIBSUFFIX/PIL:$PYDIR \
--prefix PATH : ${ghostscript}/bin:${pngnq}/bin:${djvulibre.bin}/bin:${unrar}/bin:${optipng}/bin --prefix PATH : ${stdenv.lib.makeBinPath [ ghostscript pngnq djvulibre unrar optipng ]}
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
wrapProgram $out/sbin/gparted \ wrapProgram $out/sbin/gparted \
--prefix PATH : "${procps}/bin" --prefix PATH : "${procps}/bin"
wrapProgram $out/sbin/gpartedbin \ wrapProgram $out/sbin/gpartedbin \
--prefix PATH : "${gpart}/bin:${hdparm}/bin:${utillinux}/bin" --prefix PATH : "${stdenv.lib.makeBinPath [ gpart hdparm utillinux ]}"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
make PREFIX="$out" install make PREFIX="$out" install
for fn in plow{del,down,list,up}; do for fn in plow{del,down,list,up}; do
wrapProgram "$out/bin/$fn" --prefix PATH : "${curl.bin}/bin:${spidermonkey.out}/bin" wrapProgram "$out/bin/$fn" --prefix PATH : "${stdenv.lib.makeBinPath [ curl spidermonkey ]}"
done done
''; '';

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
PREFIX=\"\" DESTDIR=$out make install PREFIX=\"\" DESTDIR=$out make install
wrapProgram $out/bin/profile-cleaner \ wrapProgram $out/bin/profile-cleaner \
--prefix PATH : "${parallel}/bin:${sqlite.bin}/bin" --prefix PATH : "${stdenv.lib.makeBinPath [ parallel sqlite ]}"
''; '';
meta = { meta = {

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
install -Dm555 ovpn-learnaddress $out/libexec/openvpn/openvpn-learnaddress install -Dm555 ovpn-learnaddress $out/libexec/openvpn/openvpn-learnaddress
wrapProgram $out/libexec/openvpn/openvpn-learnaddress \ wrapProgram $out/libexec/openvpn/openvpn-learnaddress \
--prefix PATH : ${coreutils}/bin:${gawk}/bin:${utillinux}/bin --prefix PATH : ${stdenv.lib.makeBinPath [ coreutils gawk utillinux ]}
''; '';
meta = { meta = {

View File

@ -22,8 +22,8 @@ stdenv.mkDerivation rec {
done done
# We need a way to pass $PATH to the scripts # We need a way to pass $PATH to the scripts
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 sed -i '2iexport PATH=${stdenv.lib.makeBinPath [ git mariadb which procps coreutils ]}' src/program/snabbnfv/neutron_sync_master/neutron_sync_master.sh.inc
sed -i '2iexport PATH=${git}/bin:${coreutils}/bin:${diffutils}/bin:${nettools}/bin' src/program/snabbnfv/neutron_sync_agent/neutron_sync_agent.sh.inc sed -i '2iexport PATH=${stdenv.lib.makeBinPath [ git coreutils diffutils nettools ]}' src/program/snabbnfv/neutron_sync_agent/neutron_sync_agent.sh.inc
''; '';
installPhase = '' installPhase = ''

View File

@ -34,7 +34,7 @@ in stdenv.mkDerivation rec {
cp -R . $out cp -R . $out
cp -R ${modulesSrc}/* $out/modules/ cp -R ${modulesSrc}/* $out/modules/
wrapProgram "$out/prey.sh" \ wrapProgram "$out/prey.sh" \
--prefix PATH ":" "${xawtv}/bin:${imagemagick.out}/bin:${curl.bin}/bin:${scrot}/bin:${inetutils}/bin:${coreutils}/bin" \ --prefix PATH ":" "${stdenv.lib.makeBinPath [ xawtv imagemagick curl scrot inetutils coreutils ]}" \
--set CURL_CA_BUNDLE "/etc/ssl/certs/ca-certificates.crt" --set CURL_CA_BUNDLE "/etc/ssl/certs/ca-certificates.crt"
''; '';

View File

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cp -p djvu2pdf $out/bin cp -p djvu2pdf $out/bin
wrapProgram $out/bin/djvu2pdf --prefix PATH : ${ghostscript}/bin:${djvulibre.bin}/bin:${which}/bin wrapProgram $out/bin/djvu2pdf --prefix PATH : ${stdenv.lib.makeBinPath [ ghostscript djvulibre which ]}
mkdir -p $out/man/man1 mkdir -p $out/man/man1
cp -p djvu2pdf.1.gz $out/man/man1 cp -p djvu2pdf.1.gz $out/man/man1

View File

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
sed -i "s|/usr/share/docbook2odf|$out/share/docbook2odf|" "$out/bin/docbook2odf" sed -i "s|/usr/share/docbook2odf|$out/share/docbook2odf|" "$out/bin/docbook2odf"
wrapProgram "$out/bin/docbook2odf" \ wrapProgram "$out/bin/docbook2odf" \
--prefix PATH : "${zip}/bin:${libxslt}/bin" \ --prefix PATH : "${stdenv.lib.makeBinPath [ zip libxslt ]}" \
--prefix PERL5PATH : "${stdenv.lib.makePerlPath [PerlMagick]}" --prefix PERL5PATH : "${stdenv.lib.makePerlPath [PerlMagick]}"
''; '';

View File

@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
wrapProgram "$out/bin/xmlto" \ wrapProgram "$out/bin/xmlto" \
--prefix PATH : "${libxslt.bin}/bin:${libxml2.bin}/bin:${getopt}/bin" --prefix PATH : "${stdenv.lib.makeBinPath [ libxslt libxml2 getopt ]}"
# `w3m' is needed for HTML to text conversions. # `w3m' is needed for HTML to text conversions.
substituteInPlace "$out/share/xmlto/format/docbook/txt" \ substituteInPlace "$out/share/xmlto/format/docbook/txt" \