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
|
let
|
||||||
ihaskellEnv = ghcWithPackages (self: [
|
ihaskellEnv = ghcWithPackages (self: [
|
||||||
self.ihaskell
|
self.ihaskell
|
||||||
@ -18,6 +18,10 @@ buildEnv {
|
|||||||
name = "ihaskell-with-packages";
|
name = "ihaskell-with-packages";
|
||||||
paths = [ ihaskellEnv ipython ];
|
paths = [ ihaskellEnv ipython ];
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
|
. "${makeWrapper}/nix-support/setup-hook"
|
||||||
ln -s ${ihaskellSh}/bin/ihaskell-notebook $out/bin/.
|
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