From 954bc3131e0cdf831cf45c45186973224bdda753 Mon Sep 17 00:00:00 2001 From: Oliver Charles Date: Fri, 25 Apr 2014 10:18:29 +0100 Subject: [PATCH] haskellPackages.wreq: New expression --- .../libraries/haskell/wreq/default.nix | 27 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 10 ++++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/libraries/haskell/wreq/default.nix diff --git a/pkgs/development/libraries/haskell/wreq/default.nix b/pkgs/development/libraries/haskell/wreq/default.nix new file mode 100644 index 000000000000..2197558ec08a --- /dev/null +++ b/pkgs/development/libraries/haskell/wreq/default.nix @@ -0,0 +1,27 @@ +{ cabal, aeson, attoparsec, doctest, exceptions, filepath +, httpClient, httpClientTls, httpTypes, HUnit, lens, mimeTypes +, temporary, testFramework, testFrameworkHunit, text, time +}: + +cabal.mkDerivation (self: { + pname = "wreq"; + version = "0.1.0.1"; + sha256 = "05w3b555arsab8a5w73nm9pk3p9r6jipi6cd3ngxv48gdn9wzhvz"; + isLibrary = true; + isExecutable = true; + buildDepends = [ + aeson attoparsec exceptions httpClient httpClientTls httpTypes lens + mimeTypes text time + ]; + testDepends = [ + aeson doctest filepath httpClient httpTypes HUnit lens temporary + testFramework testFrameworkHunit text + ]; + meta = { + homepage = "http://www.serpentine.com/wreq"; + description = "An easy-to-use HTTP client library"; + license = self.stdenv.lib.licenses.bsd3; + 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 813f48f9d400..ca8b58226a13 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1614,7 +1614,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x knob = callPackage ../development/libraries/haskell/knob {}; languageC = callPackage ../development/libraries/haskell/language-c {}; - + languageCInline = callPackage ../development/libraries/haskell/language-c-inline {}; languageCQuote = callPackage ../development/libraries/haskell/language-c-quote {}; @@ -2756,6 +2756,14 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x word8 = callPackage ../development/libraries/haskell/word8 {}; + wreq = callPackage ../development/libraries/haskell/wreq { + aeson = self.aeson.override { attoparsec = self.attoparsec_0_11_2_1; }; + attoparsec = self.attoparsec_0_11_2_1; + lens = self.lens.override { + aeson = self.aeson.override { attoparsec = self.attoparsec_0_11_2_1; }; + }; + }; + wx = callPackage ../development/libraries/haskell/wxHaskell/wx.nix {}; wxc = callPackage ../development/libraries/haskell/wxHaskell/wxc.nix {