summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2015-04-15 21:36:06 +0100
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2015-04-15 21:36:06 +0100
commitf7737355d4f97800e0585df91ddcd2df1501ec86 (patch)
treeb1979ceb5bf1938a590f0833a10b031e2bbea6bb /pkgs/applications/editors
parent33d52b37f3c0e79e590445fdebf095b96f944aef (diff)
downloadnixlib-f7737355d4f97800e0585df91ddcd2df1501ec86.tar
nixlib-f7737355d4f97800e0585df91ddcd2df1501ec86.tar.gz
nixlib-f7737355d4f97800e0585df91ddcd2df1501ec86.tar.bz2
nixlib-f7737355d4f97800e0585df91ddcd2df1501ec86.tar.lz
nixlib-f7737355d4f97800e0585df91ddcd2df1501ec86.tar.xz
nixlib-f7737355d4f97800e0585df91ddcd2df1501ec86.tar.zst
nixlib-f7737355d4f97800e0585df91ddcd2df1501ec86.zip
haskell-yi: clean-up + meta
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/yi/wrapper.nix7
-rw-r--r--pkgs/applications/editors/yi/yi-custom.nix40
2 files changed, 7 insertions, 40 deletions
diff --git a/pkgs/applications/editors/yi/wrapper.nix b/pkgs/applications/editors/yi/wrapper.nix
index f8a33a78577d..4887662bce54 100644
--- a/pkgs/applications/editors/yi/wrapper.nix
+++ b/pkgs/applications/editors/yi/wrapper.nix
@@ -26,4 +26,11 @@ stdenv.mkDerivation {
   # For hacking purposes
   env = yiEnv;
 
+  meta = with stdenv.lib; {
+    description = "Allows Yi to find libraries and the compiler easily.";
+    # This wrapper and wrapper only is under PD
+    license = licenses.publicDomain;
+    maintainers = with maintainers; [ fuuzetsu ];
+  };
+
 }
diff --git a/pkgs/applications/editors/yi/yi-custom.nix b/pkgs/applications/editors/yi/yi-custom.nix
deleted file mode 100644
index 2f1e76e06ccc..000000000000
--- a/pkgs/applications/editors/yi/yi-custom.nix
+++ /dev/null
@@ -1,40 +0,0 @@
-# This is a manually-written expression over an in-tree cabal file.
-# It's awkward but this way allows the package user to pass in
-# extraPackages without much extra hassle on their end, similarly how
-# the XMonad service handles it: the difference is that we don't have
-# anything like XMONAD_GHC…
-#
-# The idea is that the user changes their configs using any libraries
-# he likes and then builds it using this expression. Once that's done,
-# ‘reload’ and similar functions should all work as long as the user
-# doesn't need new libraries at which point they should add them to
-# extraPackages and rebuild from the expression.
-{ cabal, yi, extraPackages, makeWrapper, ghcWithPackages }:
-let
-  w = ghcWithPackages (self: [ yi ] ++ extraPackages self);
-  wrappedGhc = w.override { ignoreCollisions = true; };
-in
-cabal.mkDerivation (self: rec {
-  pname = "yi-custom";
-  version = "0.0.0.1";
-  src = ./yi-custom-cabal;
-  isLibrary = true;
-  buildDepends = [ yi ];
-  buildTools = [ makeWrapper ];
-  noHaddock = true;
-  doCheck = false;
-
-  postInstall = ''
-    makeWrapper ${yi}/bin/yi $out/bin/yi \
-      --set NIX_GHC ${wrappedGhc}/bin/ghc \
-      --set NIX_GHC_LIBDIR ${wrappedGhc}/lib/ghc-${self.ghc.version}
-  '';
-  meta = {
-    homepage = "http://haskell.org/haskellwiki/Yi";
-    description = "Wrapper over user-specified Haskell libraries for use in Yi config";
-    license = self.stdenv.lib.licenses.publicDomain;
-    platforms = self.ghc.meta.platforms;
-    maintainers = with self.stdenv.lib.maintainers; [ fuuzetsu ];
-  };
-
-})