diff --git a/horizon.dhall b/horizon.dhall index ed4fc705ae5fb10b16aaa3c6a4c8066a680e2d28..7e102a59d44391dd7579197bfb7973143ad5bcc3 100644 --- a/horizon.dhall +++ b/horizon.dhall @@ -1116,6 +1116,7 @@ let packages = , word-compat = H.callHackage "word-compat" "0.0.6" , word-wrap = H.callHackage "word-wrap" "0.5" , word8 = H.callHackage "word8" "0.1.3" + , wreq = H.callHackage "wreq" "0.5.3.3" , wuss = H.callHackage "wuss" "2.0.0.2" , x509-store = H.callHackage "x509-store" "1.6.9" , x509-system = H.callHackage "x509-system" "1.6.7" diff --git a/initial-packages.nix b/initial-packages.nix index 7aac8e639b05f234716e45312d486a49f3d4cfa3..43975c19fa05db4e5b3b02384c73f37da839e354 100644 --- a/initial-packages.nix +++ b/initial-packages.nix @@ -1851,6 +1851,8 @@ self: with pkgs.haskell.lib; { word8 = self.callPackage (./pkgs/word8.nix) { }; + wreq = self.callPackage (./pkgs/wreq.nix) { }; + wuss = self.callPackage (./pkgs/wuss.nix) { }; x509 = self.callPackage (./pkgs/x509.nix) { }; diff --git a/pkgs/wreq.nix b/pkgs/wreq.nix new file mode 100644 index 0000000000000000000000000000000000000000..6a610c27ac022810816f86163ed0d58b53a14521 --- /dev/null +++ b/pkgs/wreq.nix @@ -0,0 +1,128 @@ +{ mkDerivation +, Cabal +, HUnit +, QuickCheck +, aeson +, aeson-pretty +, attoparsec +, authenticate-oauth +, base +, base16-bytestring +, base64-bytestring +, bytestring +, cabal-doctest +, case-insensitive +, containers +, cryptonite +, directory +, doctest +, exceptions +, filepath +, ghc-prim +, hashable +, http-client +, http-client-tls +, http-types +, lens +, lens-aeson +, lib +, memory +, mime-types +, network-info +, psqueues +, snap-core +, snap-server +, template-haskell +, temporary +, test-framework +, test-framework-hunit +, test-framework-quickcheck2 +, text +, time +, time-locale-compat +, transformers +, unix-compat +, unordered-containers +, uuid +, vector +}: +mkDerivation { + pname = "wreq"; + version = "0.5.3.3"; + sha256 = "bcf31dd31f7c8d023ec36170f1bb4bd187906dd277d05a15dc27838b0808657f"; + isLibrary = true; + isExecutable = true; + enableSeparateDataOutput = false; + setupHaskellDepends = [ base Cabal cabal-doctest ]; + libraryHaskellDepends = [ + aeson + attoparsec + authenticate-oauth + base + base16-bytestring + bytestring + case-insensitive + containers + cryptonite + exceptions + ghc-prim + hashable + http-client + http-client-tls + http-types + lens + lens-aeson + memory + mime-types + psqueues + template-haskell + text + time + time-locale-compat + unordered-containers + ]; + testHaskellDepends = [ + aeson + aeson-pretty + base + base64-bytestring + bytestring + case-insensitive + containers + directory + doctest + filepath + hashable + http-client + http-types + HUnit + lens + lens-aeson + network-info + QuickCheck + snap-core + snap-server + temporary + test-framework + test-framework-hunit + test-framework-quickcheck2 + text + time + transformers + unix-compat + unordered-containers + uuid + vector + ]; + enableLibraryProfiling = true; + enableExecutableProfiling = true; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "http://www.serpentine.com/wreq"; + description = "An easy-to-use HTTP client library"; + license = lib.licenses.bsd3; + broken = false; +}