about summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2014-10-24 14:36:08 +0100
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2014-10-24 14:36:08 +0100
commit9eaee3fd54aadd602389e0aa8373ab146b49bdca (patch)
tree5af94f4e6717f79d0944141745bcf4b74817b390 /pkgs/applications/editors
parent432d9fc373c3e8418863d8b3fc87bab40bbfe5e1 (diff)
downloadnixlib-9eaee3fd54aadd602389e0aa8373ab146b49bdca.tar
nixlib-9eaee3fd54aadd602389e0aa8373ab146b49bdca.tar.gz
nixlib-9eaee3fd54aadd602389e0aa8373ab146b49bdca.tar.bz2
nixlib-9eaee3fd54aadd602389e0aa8373ab146b49bdca.tar.lz
nixlib-9eaee3fd54aadd602389e0aa8373ab146b49bdca.tar.xz
nixlib-9eaee3fd54aadd602389e0aa8373ab146b49bdca.tar.zst
nixlib-9eaee3fd54aadd602389e0aa8373ab146b49bdca.zip
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.
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/yi/yi-custom.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/editors/yi/yi-custom.nix b/pkgs/applications/editors/yi/yi-custom.nix
index 894080eb9013..3dbd46119988 100644
--- a/pkgs/applications/editors/yi/yi-custom.nix
+++ b/pkgs/applications/editors/yi/yi-custom.nix
@@ -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";