Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

ihaskell: make sure the wrapped binaries pick up the python path

+5 -1
+5 -1
pkgs/development/tools/haskell/ihaskell/wrapper.nix
··· 1 - { stdenv, writeScriptBin, buildEnv, ghcWithPackages, ihaskell, ipython, packages }: 2 let 3 ihaskellEnv = ghcWithPackages (self: [ 4 self.ihaskell ··· 18 name = "ihaskell-with-packages"; 19 paths = [ ihaskellEnv ipython ]; 20 postBuild = '' 21 ln -s ${ihaskellSh}/bin/ihaskell-notebook $out/bin/. 22 ''; 23 }
··· 1 + { stdenv, writeScriptBin, makeWrapper, buildEnv, ghcWithPackages, ihaskell, ipython, packages }: 2 let 3 ihaskellEnv = ghcWithPackages (self: [ 4 self.ihaskell ··· 18 name = "ihaskell-with-packages"; 19 paths = [ ihaskellEnv ipython ]; 20 postBuild = '' 21 + . "${makeWrapper}/nix-support/setup-hook" 22 ln -s ${ihaskellSh}/bin/ihaskell-notebook $out/bin/. 23 + for prg in $out/bin"/"*;do 24 + wrapProgram $prg --set PYTHONPATH "$(echo ${ipython}/lib/*/site-packages)" 25 + done 26 ''; 27 }