ihaskell: make sure the wrapped binaries pick up the python path
This commit is contained in:
parent
14c18ad9b8
commit
c351c22db5
@ -1,4 +1,4 @@
|
||||
{ stdenv, writeScriptBin, buildEnv, ghcWithPackages, ihaskell, ipython, packages }:
|
||||
{ stdenv, writeScriptBin, makeWrapper, buildEnv, ghcWithPackages, ihaskell, ipython, packages }:
|
||||
let
|
||||
ihaskellEnv = ghcWithPackages (self: [
|
||||
self.ihaskell
|
||||
@ -18,6 +18,10 @@ buildEnv {
|
||||
name = "ihaskell-with-packages";
|
||||
paths = [ ihaskellEnv ipython ];
|
||||
postBuild = ''
|
||||
. "${makeWrapper}/nix-support/setup-hook"
|
||||
ln -s ${ihaskellSh}/bin/ihaskell-notebook $out/bin/.
|
||||
for prg in $out/bin"/"*;do
|
||||
wrapProgram $prg --set PYTHONPATH "$(echo ${ipython}/lib/*/site-packages)"
|
||||
done
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user