3
0
Fork 0
forked from mirrors/nixpkgs

haskell-yi-custom: improve wrapper

Apparently it is possible for the config to be compiled correctly but
for ‘hint’ still not know where the packages are: it seems to ignore the
GHC in PATH and does whatever.
This commit is contained in:
Mateusz Kowalczyk 2014-10-24 10:03:16 +01:00
parent c44c00d56c
commit bd43ff7b6a

View file

@ -24,10 +24,10 @@ cabal.mkDerivation (self: rec {
noHaddock = true;
doCheck = false;
# put custom GHC env in front which stops crap from being picked up
# from user database
postInstall = ''
makeWrapper ${yi}/bin/yi $out/bin/yi --prefix PATH : ${wrappedGhc}/bin
makeWrapper ${yi}/bin/yi $out/bin/yi \
--prefix PATH : ${wrappedGhc}/bin \
--suffix GHC_PACKAGE_PATH : $(find ${wrappedGhc} -name '*installedconf' | tr \\n :)
'';
meta = {
homepage = "http://haskell.org/haskellwiki/Yi";