summary refs log tree commit diff
path: root/pkgs/tools/misc/shebangfix
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2008-02-04 12:07:27 +0000
committerMichael Raskin <7c6f434c@mail.ru>2008-02-04 12:07:27 +0000
commitcc1a66d42d03254ac8b9dda885ad566532aec03a (patch)
tree23ca6bf254b167d446cd5c38e90173d684b81a41 /pkgs/tools/misc/shebangfix
parent6d072802633b83b1aa263d6330a49f7db7e78d04 (diff)
downloadnixlib-cc1a66d42d03254ac8b9dda885ad566532aec03a.tar
nixlib-cc1a66d42d03254ac8b9dda885ad566532aec03a.tar.gz
nixlib-cc1a66d42d03254ac8b9dda885ad566532aec03a.tar.bz2
nixlib-cc1a66d42d03254ac8b9dda885ad566532aec03a.tar.lz
nixlib-cc1a66d42d03254ac8b9dda885ad566532aec03a.tar.xz
nixlib-cc1a66d42d03254ac8b9dda885ad566532aec03a.tar.zst
nixlib-cc1a66d42d03254ac8b9dda885ad566532aec03a.zip
Fixed shebangfix
svn path=/nixpkgs/trunk/; revision=10492
Diffstat (limited to 'pkgs/tools/misc/shebangfix')
-rw-r--r--pkgs/tools/misc/shebangfix/default.nix15
1 files changed, 8 insertions, 7 deletions
diff --git a/pkgs/tools/misc/shebangfix/default.nix b/pkgs/tools/misc/shebangfix/default.nix
index f5ed86e99f7d..ca4a0004d19b 100644
--- a/pkgs/tools/misc/shebangfix/default.nix
+++ b/pkgs/tools/misc/shebangfix/default.nix
@@ -8,13 +8,14 @@ stdenv.mkDerivation {
 
   phases = "buildPhase";
 
-  buildPhase = "
-    ensureDir \$out/bin
-    s=\$out/bin/shebangfix
-    cp \$file \$s
-    chmod +x \$s
-    perl \$s \$s
-  ";
+  buildPhase = ''
+    ensureDir $out/bin
+    s=$out/bin/shebangfix
+    cp $file $s
+    chmod +wx $s
+    ls -l $s
+    perl $s $s
+  '';
 
   meta = { description = "replaces the #!executable with $#!correctpath/executable "; };
 }