From 29f2dd36456d8b6cfb6f6c22a6c601e0d2d65e59 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Sat, 5 Nov 2022 09:46:52 +0000 Subject: [PATCH] http-api-data: init at 0.5 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/http-api-data.nix | 76 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 pkgs/http-api-data.nix diff --git a/manifest.dhall b/manifest.dhall index 3fd23569..710e1978 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -291,6 +291,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "hspec-core" "2.10.0.1" , callHackage "hspec-discover" "2.10.0.1" , callHackage "hspec-meta" "2.9.3" + , callHackage "http-api-data" "0.5" , callHackage "http-client-tls" "0.3.6.1" , callHackage "http-client" "0.7.13.1" , callHackage "http-types" "0.12.3" diff --git a/overlay.nix b/overlay.nix index 07cab7ce..b9643ff8 100644 --- a/overlay.nix +++ b/overlay.nix @@ -353,6 +353,8 @@ final: prev: with pkgs.haskell.lib; { hspec-meta = prev.callPackage (./pkgs/hspec-meta.nix) { }; + http-api-data = prev.callPackage (./pkgs/http-api-data.nix) { }; + http-client = prev.callPackage (./pkgs/http-client.nix) { }; http-client-tls = prev.callPackage (./pkgs/http-client-tls.nix) { }; diff --git a/pkgs/http-api-data.nix b/pkgs/http-api-data.nix new file mode 100644 index 00000000..72316863 --- /dev/null +++ b/pkgs/http-api-data.nix @@ -0,0 +1,76 @@ +{ mkDerivation +, attoparsec +, attoparsec-iso8601 +, base +, base-compat +, bytestring +, containers +, cookie +, hashable +, hspec +, hspec-discover +, http-types +, HUnit +, lib +, QuickCheck +, quickcheck-instances +, tagged +, text +, time-compat +, transformers +, unordered-containers +, uuid-types +}: +mkDerivation { + pname = "http-api-data"; + version = "0.5"; + sha256 = "f7edb4202cd6567e9ec5cda94dec0a823ca0ef00cf2fd7ec2cf80d946776b73f"; + revision = "1"; + editedCabalFile = "1gcqa0lm804cqv1xdaxz87mg0fv7d98i57px8al7qgdzpldma17k"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + attoparsec + attoparsec-iso8601 + base + base-compat + bytestring + containers + cookie + hashable + http-types + tagged + text + time-compat + transformers + unordered-containers + uuid-types + ]; + testHaskellDepends = [ + base + base-compat + bytestring + cookie + hspec + HUnit + QuickCheck + quickcheck-instances + text + time-compat + unordered-containers + uuid-types + ]; + testToolDepends = [ hspec-discover ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "http://github.com/fizruk/http-api-data"; + description = "Converting to/from HTTP API data like URL pieces, headers and query parameters"; + license = lib.licenses.bsd3; + broken = false; +} -- GitLab