Merge pull request #19125 from markus1189/bin-bash-cleanup

Bin bash cleanup
This commit is contained in:
Jörg Thalheim
2016-10-05 17:16:00 +02:00
committed by GitHub
10 changed files with 13 additions and 13 deletions
@@ -4,7 +4,7 @@ let
binPath = lib.makeBinPath [ cdrtools dvdauthor ffmpeg imagemagick lame mjpegtools sox transcode vorbis-tools ];
wrapper = writeScript "dvd-slideshow.sh" ''
#!/bin/bash
#!${stdenv.shell}
# wrapper script for dvd-slideshow programs
export PATH=${binPath}:$PATH
@@ -39,7 +39,7 @@ in stdenv.mkDerivation rec {
# fix upstream typos
substituteInPlace dvd-slideshow \
--replace "version='0.8.4-1'" "version='0.8.4-2'" \
--replace "mymyecho" "myecho"
--replace "mymyecho" "myecho"
'';
installPhase = ''
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!@shell@
set -e
set -u
View File
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!@shell@
set -e
set -u
@@ -1,4 +1,4 @@
#!/bin/bash
#!@shell@
source $stdenv/setup
echo "Building Manticore research compiler."
+2 -2
View File
@@ -20,8 +20,8 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
cp AstroMenace $out
cp gamedata.vfs $out
cat > $out/bin/AstroMenace << EOF
#!/bin/bash
cat > $out/bin/AstroMenace << EOF
#!${stdenv.shell}
$out/AstroMenace --dir=$out
EOF
chmod 755 $out/bin/AstroMenace
+2 -2
View File
@@ -33,8 +33,8 @@ stdenv.mkDerivation {
cp -R $d $out/usr/share/games/micropolis
done
cp Micropolis $out/usr/share/games/micropolis
cat > $out/bin/micropolis << EOF
#!/bin/bash
cat > $out/bin/micropolis << EOF
#!${stdenv.shell}
cd $out/usr/share/games/micropolis
./Micropolis
EOF
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!@shell@
set "$(dirname "$0")"/X11.bin "${@}"
+2 -2
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!@shell@
export PATH=@PATH@:$PATH
@@ -83,7 +83,7 @@ get_fontdirs() {
if [[ $osxfonts == 1 ]] ; then
find {/System/,/}Library/Fonts -type d
fi
else
else
if [[ $osxfonts == 1 && -d "${HOME}/Library/Fonts" ]] ; then
find "${HOME}/Library/Fonts" -type d
fi
+1 -1
View File
@@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
inherit sha256;
};
in
import ./bash-4.3-patches.nix patch)
import ./bash-4.3-patches.nix patch)
++ optional stdenv.isCygwin ./cygwin-bash-4.3.33-1.src.patch;
crossAttrs = {