summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2013-12-10 12:18:54 +0100
committerPeter Simons <simons@cryp.to>2013-12-10 20:41:40 +0100
commitc9a52836c83d8e455092e0a1e210f59aec22c077 (patch)
tree2e7418bf62de44c2ee961079b2f8c871c6d9210f /pkgs
parent12a3008d4c0683818976508f62bf10eb205d80cd (diff)
downloadnixlib-c9a52836c83d8e455092e0a1e210f59aec22c077.tar
nixlib-c9a52836c83d8e455092e0a1e210f59aec22c077.tar.gz
nixlib-c9a52836c83d8e455092e0a1e210f59aec22c077.tar.bz2
nixlib-c9a52836c83d8e455092e0a1e210f59aec22c077.tar.lz
nixlib-c9a52836c83d8e455092e0a1e210f59aec22c077.tar.xz
nixlib-c9a52836c83d8e455092e0a1e210f59aec22c077.tar.zst
nixlib-c9a52836c83d8e455092e0a1e210f59aec22c077.zip
haskell-pretty-show: resurrect version 1.2, which is required to build hledger on old versions of GHC
This reverts commit 54bfef6fc3d88eabfbd17c440c906170f7bc00ef.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/haskell/pretty-show/1.2.nix16
-rw-r--r--pkgs/development/libraries/haskell/pretty-show/1.6.2.nix (renamed from pkgs/development/libraries/haskell/pretty-show/default.nix)0
-rw-r--r--pkgs/top-level/haskell-packages.nix4
3 files changed, 19 insertions, 1 deletions
diff --git a/pkgs/development/libraries/haskell/pretty-show/1.2.nix b/pkgs/development/libraries/haskell/pretty-show/1.2.nix
new file mode 100644
index 000000000000..545816a57a02
--- /dev/null
+++ b/pkgs/development/libraries/haskell/pretty-show/1.2.nix
@@ -0,0 +1,16 @@
+{ cabal, haskellLexer }:
+
+cabal.mkDerivation (self: {
+  pname = "pretty-show";
+  version = "1.2";
+  sha256 = "0lbalmyrqisgd2spbvzifsy25lr6cl9sgz78hav8q8r406k7nf2l";
+  isLibrary = true;
+  isExecutable = true;
+  buildDepends = [ haskellLexer ];
+  meta = {
+    homepage = "http://wiki.github.com/yav/pretty-show";
+    description = "Tools for working with derived Show instances";
+    license = self.stdenv.lib.licenses.bsd3;
+    platforms = self.ghc.meta.platforms;
+  };
+})
diff --git a/pkgs/development/libraries/haskell/pretty-show/default.nix b/pkgs/development/libraries/haskell/pretty-show/1.6.2.nix
index ea3b7ed27cbf..ea3b7ed27cbf 100644
--- a/pkgs/development/libraries/haskell/pretty-show/default.nix
+++ b/pkgs/development/libraries/haskell/pretty-show/1.6.2.nix
diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix
index 2e8e5c741ba9..5e4488add3fe 100644
--- a/pkgs/top-level/haskell-packages.nix
+++ b/pkgs/top-level/haskell-packages.nix
@@ -1772,9 +1772,11 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x
 
   ppm = callPackage ../development/libraries/haskell/ppm {};
 
-  prettyShow = callPackage ../development/libraries/haskell/pretty-show {
+  prettyShow_1_2 = callPackage ../development/libraries/haskell/pretty-show/1.2.nix {};
+  prettyShow_1_6_2 = callPackage ../development/libraries/haskell/pretty-show/1.6.2.nix {
     happy = self.happy_1_19_2;
   };
+  prettyShow = self.prettyShow_1_6_2;
 
   punycode = callPackage ../development/libraries/haskell/punycode {};