From 95ee2c8e266aa96b8119bded18255ed550960b03 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 14 Feb 2020 02:00:44 +0000 Subject: [PATCH] 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. --- pkgs/development/python-modules/cmd2/default.nix | 4 ++-- 1 file 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 '';