about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-02-14 02:00:44 +0000
committerMatthieu Coudron <mattator@gmail.com>2020-02-14 04:16:50 +0100
commit95ee2c8e266aa96b8119bded18255ed550960b03 (patch)
treee19974951c4c6b8fd6c6672ed9868e69735d8d3a
parented123808279497f302ad71ec9077e583f779e7de (diff)
downloadnixlib-95ee2c8e266aa96b8119bded18255ed550960b03.tar
nixlib-95ee2c8e266aa96b8119bded18255ed550960b03.tar.gz
nixlib-95ee2c8e266aa96b8119bded18255ed550960b03.tar.bz2
nixlib-95ee2c8e266aa96b8119bded18255ed550960b03.tar.lz
nixlib-95ee2c8e266aa96b8119bded18255ed550960b03.tar.xz
nixlib-95ee2c8e266aa96b8119bded18255ed550960b03.tar.zst
nixlib-95ee2c8e266aa96b8119bded18255ed550960b03.zip
python3.pkgs.cmd2: fix shebang
The bang was missing!  What was there before would still have worked,
but I think it would end up being executed by /bin/sh since it had no
shebang line.
-rw-r--r--pkgs/development/python-modules/cmd2/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/cmd2/default.nix b/pkgs/development/python-modules/cmd2/default.nix
index ca1056928574..ac5ef42bdbed 100644
--- a/pkgs/development/python-modules/cmd2/default.nix
+++ b/pkgs/development/python-modules/cmd2/default.nix
@@ -18,8 +18,8 @@ buildPythonPackage rec {
   postPatch = stdenv.lib.optional stdenv.isDarwin ''
     # Fake the impure dependencies pbpaste and pbcopy
     mkdir bin
-    echo '#${stdenv.shell}' > bin/pbpaste
-    echo '#${stdenv.shell}' > bin/pbcopy
+    echo '#!${stdenv.shell}' > bin/pbpaste
+    echo '#!${stdenv.shell}' > bin/pbcopy
     chmod +x bin/{pbcopy,pbpaste}
     export PATH=$(realpath bin):$PATH
   '';