diff --git a/horizon.dhall b/horizon.dhall index b2772b25069055dec950753d1c4971f94629f736..0e4a9494b361a65032bea55f7ed416e36592e33f 100644 --- a/horizon.dhall +++ b/horizon.dhall @@ -412,6 +412,7 @@ in H.HorizonExport.MakePackageSet , H.callHackage "http-api-data" "0.5" , H.callHackage "http-client-tls" "0.3.6.1" , H.callHackage "http-client" "0.7.13.1" + , H.callHackage "http-conduit" "2.3.8" , H.callHackage "http-date" "0.0.11" , H.callHackage "http-media" "0.8.0.0" , H.callHackage "http-types" "0.12.3" diff --git a/initial-packages.nix b/initial-packages.nix index 5f07158fceec3675474d5edb5bda767b7a339d7c..bb3254b40cd0f828b3cf83dc3398cfbfc89c5c34 100644 --- a/initial-packages.nix +++ b/initial-packages.nix @@ -643,6 +643,8 @@ self: with pkgs.haskell.lib; { http-client-tls = self.callPackage (./pkgs/http-client-tls.nix) { }; + http-conduit = self.callPackage (./pkgs/http-conduit.nix) { }; + http-date = self.callPackage (./pkgs/http-date.nix) { }; http-media = self.callPackage (./pkgs/http-media.nix) { }; diff --git a/pkgs/http-conduit.nix b/pkgs/http-conduit.nix new file mode 100644 index 0000000000000000000000000000000000000000..0bf5e32f3250f7965ae5db42899529cc0d0d030d --- /dev/null +++ b/pkgs/http-conduit.nix @@ -0,0 +1,99 @@ +{ mkDerivation +, HUnit +, aeson +, attoparsec +, base +, blaze-builder +, bytestring +, case-insensitive +, conduit +, conduit-extra +, connection +, cookie +, data-default-class +, hspec +, http-client +, http-client-tls +, http-types +, lib +, mtl +, network +, resourcet +, streaming-commons +, temporary +, text +, time +, tls +, transformers +, unliftio +, unliftio-core +, utf8-string +, wai +, wai-conduit +, warp +, warp-tls +}: +mkDerivation { + pname = "http-conduit"; + version = "2.3.8"; + sha256 = "cfbef293856fdcce58618726ff911ca28e2ad07c8522b2cd1cfa2cb6e02542ae"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + aeson + attoparsec + base + bytestring + conduit + conduit-extra + http-client + http-client-tls + http-types + mtl + resourcet + transformers + unliftio-core + ]; + testHaskellDepends = [ + aeson + base + blaze-builder + bytestring + case-insensitive + conduit + conduit-extra + connection + cookie + data-default-class + hspec + http-client + http-types + HUnit + network + resourcet + streaming-commons + temporary + text + time + tls + transformers + unliftio + utf8-string + wai + wai-conduit + warp + warp-tls + ]; + enableLibraryProfiling = true; + enableExecutableProfiling = true; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "http://www.yesodweb.com/book/http-conduit"; + description = "HTTP client package with conduit interface and HTTPS support"; + license = lib.licenses.bsd3; + broken = false; +}