From ea95516bf8a63cb9162cd3686bd6fc521deed8ac Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 11 Apr 2014 10:13:47 +0200 Subject: [PATCH] haskell-parsers: add version 0.11 --- .../parsers/{default.nix => 0.10.3.nix} | 0 .../libraries/haskell/parsers/0.11.nix | 19 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 4 +++- 3 files changed, 22 insertions(+), 1 deletion(-) rename pkgs/development/libraries/haskell/parsers/{default.nix => 0.10.3.nix} (100%) create mode 100644 pkgs/development/libraries/haskell/parsers/0.11.nix diff --git a/pkgs/development/libraries/haskell/parsers/default.nix b/pkgs/development/libraries/haskell/parsers/0.10.3.nix similarity index 100% rename from pkgs/development/libraries/haskell/parsers/default.nix rename to pkgs/development/libraries/haskell/parsers/0.10.3.nix diff --git a/pkgs/development/libraries/haskell/parsers/0.11.nix b/pkgs/development/libraries/haskell/parsers/0.11.nix new file mode 100644 index 000000000000..c5d91f167cc6 --- /dev/null +++ b/pkgs/development/libraries/haskell/parsers/0.11.nix @@ -0,0 +1,19 @@ +{ cabal, attoparsec, charset, doctest, filepath, parsec, text +, transformers, unorderedContainers +}: + +cabal.mkDerivation (self: { + pname = "parsers"; + version = "0.11"; + sha256 = "0k3xm9ww4q2wkjik4n4ww6ys79kl7xyzbhcb7xi81jz9py0xciqd"; + buildDepends = [ + attoparsec charset parsec text transformers unorderedContainers + ]; + testDepends = [ doctest filepath ]; + meta = { + homepage = "http://github.com/ekmett/parsers/"; + description = "Parsing combinators"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 4cc9356c16e4..ee9daa210d83 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1948,7 +1948,9 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x parsec3 = self.parsec_3_1_5; parsec = self.parsec3; - parsers = callPackage ../development/libraries/haskell/parsers {}; + parsers_0_10_3 = callPackage ../development/libraries/haskell/parsers/0.10.3.nix {}; + parsers_0_11 = callPackage ../development/libraries/haskell/parsers/0.11.nix {}; + parsers = self.parsers_0_10_3; parsimony = callPackage ../development/libraries/haskell/parsimony {};