From 92f13bc75e7c3d8f7f401a3f91922919493e7dc7 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Mon, 26 Dec 2022 09:53:10 +0000 Subject: [PATCH] http-conduit: init at 2.3.8 --- horizon.dhall | 1 + initial-packages.nix | 2 + pkgs/http-conduit.nix | 99 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 102 insertions(+) create mode 100644 pkgs/http-conduit.nix diff --git a/horizon.dhall b/horizon.dhall index b2772b25..0e4a9494 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 5f07158f..bb3254b4 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 00000000..0bf5e32f --- /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; +} -- GitLab