diff --git a/horizon.dhall b/horizon.dhall index 4c6dbbb7203a340822d0228c989545dd57625b7a..d2b57da3f96d07dc22f464045b7d1fc745f15043 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 5f8c69cd84b63ad7af5a70dbf645dff9f096e9cb..77bf96c97e43b61bc4d79a94b792dca9b240e3c7 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 0000000000000000000000000000000000000000..bd1cff37545f3b84f60dbd605fa4b0fc6353dbeb --- /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; +}