ihaskell-wrapper: avoid use of /bin/sh

https://github.com/NixOS/nixpkgs/issues/183
This commit is contained in:
Peter Simons 2015-06-12 10:50:40 +02:00
parent 214aae46c7
commit 4d404fd6a4

View File

@ -7,7 +7,7 @@ let
self.ihaskell-display
] ++ packages self);
ihaskellSh = writeScriptBin "ihaskell-notebook" ''
#!/bin/sh
#! ${stdenv.shell}
export GHC_PACKAGE_PATH="$(echo ${ihaskellEnv}/lib/*/package.conf.d| tr ' ' ':'):$GHC_PACKAGE_PATH"
export PATH="${ihaskell}/bin:${ihaskellEnv}/bin:${ipython}/bin"
${ihaskell}/bin/ihaskell install -l $(${ihaskellEnv}/bin/ghc --print-libdir) && ${ipython}/bin/ipython notebook --kernel=haskell