From 0898aa7ad0503c1eab236a2a77e802b5f4b1ff6b Mon Sep 17 00:00:00 2001 From: Oliver Charles Date: Sat, 11 Jan 2014 22:16:07 +0000 Subject: [PATCH] haskellPackages.digestiveFunctorsAeson: New expression --- .../libraries/haskell/aeson-lens/default.nix | 15 +++++++++++++ .../digestive-functors-aeson/default.nix | 22 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 4 ++++ 3 files changed, 41 insertions(+) create mode 100644 pkgs/development/libraries/haskell/aeson-lens/default.nix create mode 100644 pkgs/development/libraries/haskell/digestive-functors-aeson/default.nix diff --git a/pkgs/development/libraries/haskell/aeson-lens/default.nix b/pkgs/development/libraries/haskell/aeson-lens/default.nix new file mode 100644 index 000000000000..f2d1915e122c --- /dev/null +++ b/pkgs/development/libraries/haskell/aeson-lens/default.nix @@ -0,0 +1,15 @@ +{ cabal, aeson, doctest, lens, text, unorderedContainers, vector }: + +cabal.mkDerivation (self: { + pname = "aeson-lens"; + version = "0.5.0.0"; + sha256 = "1pr8cxkx41wi7095cp1gpqrwadwx6azcrdi1kr1ik0fs6606dkks"; + buildDepends = [ aeson lens text unorderedContainers vector ]; + testDepends = [ doctest ]; + meta = { + description = "Lens of Aeson"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + maintainers = [ self.stdenv.lib.maintainers.ocharles ]; + }; +}) diff --git a/pkgs/development/libraries/haskell/digestive-functors-aeson/default.nix b/pkgs/development/libraries/haskell/digestive-functors-aeson/default.nix new file mode 100644 index 000000000000..50ff8b005e44 --- /dev/null +++ b/pkgs/development/libraries/haskell/digestive-functors-aeson/default.nix @@ -0,0 +1,22 @@ +{ cabal, aeson, aesonLens, digestiveFunctors, HUnit, lens, mtl +, safe, tasty, tastyHunit, text, vector +}: + +cabal.mkDerivation (self: { + pname = "digestive-functors-aeson"; + version = "1.1.3"; + sha256 = "0194yd2b9irm1gmk3d8awrsrmsr4lml63wr4vm8a92s7w3hdy0db"; + buildDepends = [ + aeson aesonLens digestiveFunctors lens safe text vector + ]; + testDepends = [ + aeson digestiveFunctors HUnit mtl tasty tastyHunit text + ]; + meta = { + homepage = "http://github.com/ocharles/digestive-functors-aeson"; + description = "Run digestive-functors forms against JSON"; + license = self.stdenv.lib.licenses.gpl3; + platforms = self.ghc.meta.platforms; + maintainers = [ self.stdenv.lib.maintainers.ocharles ]; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 0c54836ab6e0..381e4c28c0cd 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -524,6 +524,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x aeson = callPackage ../development/libraries/haskell/aeson {}; + aesonLens = callPackage ../development/libraries/haskell/aeson-lens {}; + aesonPretty = callPackage ../development/libraries/haskell/aeson-pretty {}; alternativeIo = callPackage ../development/libraries/haskell/alternative-io {}; @@ -903,6 +905,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x digestiveFunctors = callPackage ../development/libraries/haskell/digestive-functors {}; + digestiveFunctorsAeson = callPackage ../development/libraries/haskell/digestive-functors-aeson {}; + digestiveFunctorsHeist = callPackage ../development/libraries/haskell/digestive-functors-heist {}; digestiveFunctorsSnap = callPackage ../development/libraries/haskell/digestive-functors-snap {};