summary refs log tree commit diff
path: root/pkgs/development/libraries/haskell/trifecta
diff options
context:
space:
mode:
authorMathijs Kwik <mathijs@bluescreen303.nl>2013-10-31 11:01:25 +0100
committerMathijs Kwik <mathijs@bluescreen303.nl>2013-11-01 08:02:19 +0100
commit3c2b7f5e33ff3b94262806c82386896f35653b5c (patch)
tree6d4492d14523e11b90ca87e8739f60790108e870 /pkgs/development/libraries/haskell/trifecta
parent07d68731ffcfa1d7f5b72e862cbb9b0dac2e7741 (diff)
downloadnixpkgs-3c2b7f5e33ff3b94262806c82386896f35653b5c.tar
nixpkgs-3c2b7f5e33ff3b94262806c82386896f35653b5c.tar.gz
nixpkgs-3c2b7f5e33ff3b94262806c82386896f35653b5c.tar.bz2
nixpkgs-3c2b7f5e33ff3b94262806c82386896f35653b5c.tar.lz
nixpkgs-3c2b7f5e33ff3b94262806c82386896f35653b5c.tar.xz
nixpkgs-3c2b7f5e33ff3b94262806c82386896f35653b5c.tar.zst
nixpkgs-3c2b7f5e33ff3b94262806c82386896f35653b5c.zip
haskell-trifecta: bring back 1.1 for idris
Diffstat (limited to 'pkgs/development/libraries/haskell/trifecta')
-rw-r--r--pkgs/development/libraries/haskell/trifecta/1.1.nix30
-rw-r--r--pkgs/development/libraries/haskell/trifecta/1.2.nix (renamed from pkgs/development/libraries/haskell/trifecta/default.nix)0
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/libraries/haskell/trifecta/1.1.nix b/pkgs/development/libraries/haskell/trifecta/1.1.nix
new file mode 100644
index 00000000000..ac6cfdd43ae
--- /dev/null
+++ b/pkgs/development/libraries/haskell/trifecta/1.1.nix
@@ -0,0 +1,30 @@
+{ cabal, ansiTerminal, ansiWlPprint, blazeBuilder, blazeHtml
+, blazeMarkup, charset, comonad, deepseq, doctest, filepath
+, fingertree, hashable, lens, mtl, parsers, reducers, semigroups
+, transformers, unorderedContainers, utf8String
+}:
+
+cabal.mkDerivation (self: {
+  pname = "trifecta";
+  version = "1.1";
+  sha256 = "19wnblpn31hvdi5dc8ir24s0hfjj4vvzr43gg9ydl2qdjq6s166w";
+  buildDepends = [
+    ansiTerminal ansiWlPprint blazeBuilder blazeHtml blazeMarkup
+    charset comonad deepseq fingertree hashable lens mtl parsers
+    reducers semigroups transformers unorderedContainers utf8String
+  ];
+  testDepends = [ doctest filepath ];
+  postPatch = ''
+    substituteInPlace trifecta.cabal \
+      --replace "blaze-html           >= 0.5     && < 0.6," "blaze-html           >= 0.5     && < 0.7," \
+      --replace "hashable             >= 1.2     && < 1.3," "hashable             >= 1.1     && < 1.3," \
+      --replace "fingertree           >= 0.0.1   && < 0.1," "fingertree           >= 0.0.1   && < 0.2," \
+      --replace "comonad              == 3.*,"              "comonad              >= 3       && < 5,"
+  '';
+  meta = {
+    homepage = "http://github.com/ekmett/trifecta/";
+    description = "A modern parser combinator library with convenient diagnostics";
+    license = self.stdenv.lib.licenses.bsd3;
+    platforms = self.ghc.meta.platforms;
+  };
+})
diff --git a/pkgs/development/libraries/haskell/trifecta/default.nix b/pkgs/development/libraries/haskell/trifecta/1.2.nix
index de876fa7f67..de876fa7f67 100644
--- a/pkgs/development/libraries/haskell/trifecta/default.nix
+++ b/pkgs/development/libraries/haskell/trifecta/1.2.nix