From edcfe3cab6a9cc9ea197a9380a74b0b2b57e623e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 31 May 2014 07:33:49 +0000 Subject: [PATCH] haskell-optparse-applicative: make 0.7.0.2 available --- .../haskell/optparse-applicative/0.7.0.2.nix | 22 +++++++++++++++++++ .../{default.nix => 0.9.0.nix} | 0 pkgs/top-level/haskell-packages.nix | 4 +++- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/libraries/haskell/optparse-applicative/0.7.0.2.nix rename pkgs/development/libraries/haskell/optparse-applicative/{default.nix => 0.9.0.nix} (100%) diff --git a/pkgs/development/libraries/haskell/optparse-applicative/0.7.0.2.nix b/pkgs/development/libraries/haskell/optparse-applicative/0.7.0.2.nix new file mode 100644 index 000000000000..ae211346c90d --- /dev/null +++ b/pkgs/development/libraries/haskell/optparse-applicative/0.7.0.2.nix @@ -0,0 +1,22 @@ +{ cabal, ansiWlPprint, HUnit, QuickCheck, testFramework +, testFrameworkHunit, testFrameworkQuickcheck2 +, testFrameworkThPrime, transformers, transformersCompat +}: + +cabal.mkDerivation (self: { + pname = "optparse-applicative"; + version = "0.7.0.2"; + sha256 = "1pq620236x8fch9nkq4g4vganbzksnwj8z1bb80c2mwvf6sbg5ci"; + buildDepends = [ ansiWlPprint transformers transformersCompat ]; + testDepends = [ + HUnit QuickCheck testFramework testFrameworkHunit + testFrameworkQuickcheck2 testFrameworkThPrime + ]; + jailbreak = true; + meta = { + homepage = "https://github.com/pcapriotti/optparse-applicative"; + description = "Utilities and combinators for parsing command line options"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/development/libraries/haskell/optparse-applicative/default.nix b/pkgs/development/libraries/haskell/optparse-applicative/0.9.0.nix similarity index 100% rename from pkgs/development/libraries/haskell/optparse-applicative/default.nix rename to pkgs/development/libraries/haskell/optparse-applicative/0.9.0.nix diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 6c091fac5814..3fdbb2734ae1 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1644,7 +1644,9 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in options = callPackage ../development/libraries/haskell/options {}; - optparseApplicative = callPackage ../development/libraries/haskell/optparse-applicative {}; + optparseApplicative_0_7_0_2 = callPackage ../development/libraries/haskell/optparse-applicative/0.7.0.2.nix {}; + optparseApplicative_0_9_0 = callPackage ../development/libraries/haskell/optparse-applicative/0.9.0.nix {}; + optparseApplicative = self.optparseApplicative_0_9_0; pathPieces = callPackage ../development/libraries/haskell/path-pieces {};