From bd43ff7b6a3db5445960df3ba79648637d46fa45 Mon Sep 17 00:00:00 2001 From: Mateusz Kowalczyk Date: Fri, 24 Oct 2014 10:03:16 +0100 Subject: haskell-yi-custom: improve wrapper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- pkgs/applications/editors/yi/yi-custom.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs/applications/editors/yi') 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"; -- cgit 1.4.1