haskell-yi-custom: use NIX_* vars for nicer wrap

According to @bennofs , this should now work regardless of what kind of
mess the user is in.
This commit is contained in:
Mateusz Kowalczyk 2014-10-24 14:36:08 +01:00
parent 432d9fc373
commit 9eaee3fd54

View file

@ -26,8 +26,8 @@ cabal.mkDerivation (self: rec {
postInstall = ''
makeWrapper ${yi}/bin/yi $out/bin/yi \
--prefix PATH : ${wrappedGhc}/bin \
--suffix GHC_PACKAGE_PATH : $(find ${wrappedGhc} -name '*installedconf' | tr \\n :)
--set NIX_GHC ${wrappedGhc}/bin/ghc \
--set NIX_GHC_LIBDIR ${wrappedGhc}/lib/ghc-${self.ghc.version}
'';
meta = {
homepage = "http://haskell.org/haskellwiki/Yi";