summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2014-10-24 10:03:16 +0100
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2014-10-24 10:04:27 +0100
commitbd43ff7b6a3db5445960df3ba79648637d46fa45 (patch)
tree31d0e3c819dfed0c65367b8db3a28a9d27eb7481 /pkgs/applications
parentc44c00d56c0536a7b75ba78df5ad3fb1def7c681 (diff)
downloadnixlib-bd43ff7b6a3db5445960df3ba79648637d46fa45.tar
nixlib-bd43ff7b6a3db5445960df3ba79648637d46fa45.tar.gz
nixlib-bd43ff7b6a3db5445960df3ba79648637d46fa45.tar.bz2
nixlib-bd43ff7b6a3db5445960df3ba79648637d46fa45.tar.lz
nixlib-bd43ff7b6a3db5445960df3ba79648637d46fa45.tar.xz
nixlib-bd43ff7b6a3db5445960df3ba79648637d46fa45.tar.zst
nixlib-bd43ff7b6a3db5445960df3ba79648637d46fa45.zip
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.
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/editors/yi/yi-custom.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/applications/editors/yi/yi-custom.nix b/pkgs/applications/editors/yi/yi-custom.nix
index 9d63b3808032..894080eb9013 100644
--- a/pkgs/applications/editors/yi/yi-custom.nix
+++ b/pkgs/applications/editors/yi/yi-custom.nix
@@ -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";