12 ihaskellEnv = ghcWithPackages (
17 # Doesn't work with latest ihaskell versions missing an unrelated change
18 # https://github.com/IHaskell/IHaskell/issues/1378
19 # self.ihaskell-diagrams
23 ihaskellSh = writeScriptBin "ihaskell-notebook" ''
25 export GHC_PACKAGE_PATH="$(echo ${ihaskellEnv}/lib/*/package.conf.d| tr ' ' ':'):$GHC_PACKAGE_PATH"
32 ${ihaskellEnv}/bin/ihaskell install -l $(${ihaskellEnv}/bin/ghc --print-libdir) && ${jupyter}/bin/jupyter notebook
36 name = "ihaskell-with-packages";
37 nativeBuildInputs = [ makeWrapper ];
43 ln -s ${ihaskellSh}/bin/ihaskell-notebook $out/bin/
44 for prg in $out/bin"/"*;do
45 if [[ -f $prg && -x $prg ]]; then
46 wrapProgram $prg --set PYTHONPATH "$(echo ${jupyter}/lib/*/site-packages)"