From 41f2352af0ea03a5e0603193c525af6d38b2ae04 Mon Sep 17 00:00:00 2001
From: Max Tomago <noreply@tomagotech.com>
Date: Tue, 29 Nov 2022 15:24:25 +0100
Subject: [PATCH] http-common: init at 0.8.3.4

---
 horizon.dhall        |  1 +
 overlay.nix          |  2 ++
 pkgs/http-common.nix | 48 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+)
 create mode 100644 pkgs/http-common.nix

diff --git a/horizon.dhall b/horizon.dhall
index 4c6dbbb..d2b57da 100644
--- a/horizon.dhall
+++ b/horizon.dhall
@@ -198,6 +198,7 @@ let otherLibraries =
       , H.callHackage "hedgehog-quickcheck" "0.1.1"
       , H.callHackage "heredoc" "0.2.0.0"
       , H.callHackage "hex-text" "0.1.0.7"
+      , H.callHackage "http-common" "0.8.3.4"
       , H.callHackage "hw-aeson" "0.1.8.0"
       , H.callHackage "hxt" "9.3.1.22"
       , H.callHackage "hxt-charproperties" "9.5.0.0"
diff --git a/overlay.nix b/overlay.nix
index 5f8c69c..77bf96c 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -141,6 +141,8 @@ final: prev: with pkgs.haskell.lib; {
 
   hex-text = final.callPackage (./pkgs/hex-text.nix) { };
 
+  http-common = final.callPackage (./pkgs/http-common.nix) { };
+
   hw-aeson = final.callPackage (./pkgs/hw-aeson.nix) { };
 
   hxt = final.callPackage (./pkgs/hxt.nix) { };
diff --git a/pkgs/http-common.nix b/pkgs/http-common.nix
new file mode 100644
index 0000000..bd1cff3
--- /dev/null
+++ b/pkgs/http-common.nix
@@ -0,0 +1,48 @@
+{ mkDerivation
+, base
+, base64-bytestring
+, blaze-builder
+, bytestring
+, case-insensitive
+, directory
+, lib
+, mtl
+, network
+, random
+, text
+, transformers
+, unordered-containers
+}:
+mkDerivation {
+  pname = "http-common";
+  version = "0.8.3.4";
+  sha256 = "484412bbe111279e24207d25aeae4cbfb28127a9fc3d704c2e0a3bc094b3ebf6";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    base
+    base64-bytestring
+    blaze-builder
+    bytestring
+    case-insensitive
+    directory
+    mtl
+    network
+    random
+    text
+    transformers
+    unordered-containers
+  ];
+  enableLibraryProfiling = true;
+  enableExecutableProfiling = true;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/aesiniath/http-common";
+  description = "Common types for HTTP clients and servers";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab