Replace hard coded /bin/bash occurrences
commitaafbd405776e50ee349035b950f512a57c9fd28f
authorMarkus Hauck <markus1189@gmail.com>
dateSat 1 Oct 2016, 11:17 (10 years ago)
parent58b6c84
pkgs/applications/video/dvd-slideshow/default.nix+2−2
@@ -4,7 +4,7 @@ let
44 binPath = lib.makeBinPath [ cdrtools dvdauthor ffmpeg imagemagick lame mjpegtools sox transcode vorbis-tools ];
55
66 wrapper = writeScript "dvd-slideshow.sh" ''
7− #!/bin/bash
7+ #!${stdenv.shell}
88 # wrapper script for dvd-slideshow programs
99 export PATH=${binPath}:$PATH
1010
@@ -39,7 +39,7 @@ in stdenv.mkDerivation rec {
3939 # fix upstream typos
4040 substituteInPlace dvd-slideshow \
4141 --replace "version='0.8.4-1'" "version='0.8.4-2'" \
42− --replace "mymyecho" "myecho"
42+ --replace "mymyecho" "myecho"
4343 '';
4444
4545 installPhase = ''
pkgs/build-support/cc-wrapper/ld-solaris-wrapper.shmode 100644 → 100755+1−1
@@ -1,4 +1,4 @@
1−#!/bin/bash
1+#!@shell@
22
33set -e
44set -u
pkgs/build-support/dotnetbuildhelpers/patch-fsharp-targets.shmode 100644 → 100755
Only the mode changed.
pkgs/build-support/gcc-wrapper-old/ld-solaris-wrapper.shmode 100644 → 100755+1−1
@@ -1,4 +1,4 @@
1−#!/bin/bash
1+#!@shell@
22
33set -e
44set -u
pkgs/development/compilers/manticore/builder.sh+1−1
@@ -1,4 +1,4 @@
1−#!/bin/bash
1+#!@shell@
22
33source $stdenv/setup
44echo "Building Manticore research compiler."
pkgs/games/astromenace/default.nix+2−2
@@ -20,8 +20,8 @@ stdenv.mkDerivation rec {
2020 mkdir -p $out/bin
2121 cp AstroMenace $out
2222 cp gamedata.vfs $out
23− cat > $out/bin/AstroMenace << EOF
24− #!/bin/bash
23+ cat > $out/bin/AstroMenace << EOF
24+ #!${stdenv.shell}
2525 $out/AstroMenace --dir=$out
2626 EOF
2727 chmod 755 $out/bin/AstroMenace
pkgs/games/micropolis/default.nix+2−2
@@ -33,8 +33,8 @@ stdenv.mkDerivation {
3333 cp -R $d $out/usr/share/games/micropolis
3434 done
3535 cp Micropolis $out/usr/share/games/micropolis
36− cat > $out/bin/micropolis << EOF
37− #!/bin/bash
36+ cat > $out/bin/micropolis << EOF
37+ #!${stdenv.shell}
3838 cd $out/usr/share/games/micropolis
3939 ./Micropolis
4040 EOF
pkgs/servers/x11/xquartz/X11+1−1
@@ -1,4 +1,4 @@
1−#!/bin/bash
1+#!@shell@
22
33set "$(dirname "$0")"/X11.bin "${@}"
44
pkgs/servers/x11/xquartz/font_cache+2−2
@@ -1,4 +1,4 @@
1−#!/bin/bash
1+#!@shell@
22
33export PATH=@PATH@:$PATH
44
@@ -83,7 +83,7 @@ get_fontdirs() {
8383 if [[ $osxfonts == 1 ]] ; then
8484 find {/System/,/}Library/Fonts -type d
8585 fi
86− else
86+ else
8787 if [[ $osxfonts == 1 && -d "${HOME}/Library/Fonts" ]] ; then
8888 find "${HOME}/Library/Fonts" -type d
8989 fi
pkgs/shells/bash/default.nix+1−1
@@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
4747 inherit sha256;
4848 };
4949 in
50− import ./bash-4.3-patches.nix patch)
50+ import ./bash-4.3-patches.nix patch)
5151 ++ optional stdenv.isCygwin ./cygwin-bash-4.3.33-1.src.patch;
5252
5353 crossAttrs = {