diff --git a/manifest.dhall b/manifest.dhall index 2235cb05720fbc1f586adc796c1f3d2142ba4f72..460e9848ee53d0d323926bfb39d60333b487a20c 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -270,6 +270,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "hspec-meta" "2.9.3" , callHackage "http-client" "0.7.13.1" , callHackage "http-date" "0.0.11" + , callHackage "http-media" "0.8.0.0" , callHackage "http-types" "0.12.3" , callHackage "http2" "3.0.3" , callHackage "incipit-base" "0.3.0.0" diff --git a/overlay.nix b/overlay.nix index 1102489012d7c3b91df6790c3bfc0136e2923c83..186ab9d5c15ea913a4709f61f48bf14c19de92f1 100644 --- a/overlay.nix +++ b/overlay.nix @@ -311,6 +311,8 @@ final: prev: with pkgs.haskell.lib; { http-date = prev.callPackage (./pkgs/http-date.nix) { }; + http-media = prev.callPackage (./pkgs/http-media.nix) { }; + http-types = prev.callPackage (./pkgs/http-types.nix) { }; http2 = prev.callPackage (./pkgs/http2.nix) { }; diff --git a/pkgs/http-media.nix b/pkgs/http-media.nix new file mode 100644 index 0000000000000000000000000000000000000000..c8d2c646fd7bb86ab326c5ebb73d72d60e111042 --- /dev/null +++ b/pkgs/http-media.nix @@ -0,0 +1,49 @@ +{ mkDerivation +, base +, bytestring +, case-insensitive +, containers +, lib +, QuickCheck +, test-framework +, test-framework-quickcheck2 +, utf8-string +}: +mkDerivation { + pname = "http-media"; + version = "0.8.0.0"; + sha256 = "398279d1dff5b60cd8b8c650caceca248ea1184d694bedf5df5426963b2b9c53"; + revision = "7"; + editedCabalFile = "1sm8bnrqvwkj7f60x4s8vfsj6lfi0knq38im35x88wk8s9whg6jd"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + base + bytestring + case-insensitive + containers + utf8-string + ]; + testHaskellDepends = [ + base + bytestring + case-insensitive + containers + QuickCheck + test-framework + test-framework-quickcheck2 + utf8-string + ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "https://github.com/zmthy/http-media"; + description = "Processing HTTP Content-Type and Accept headers"; + license = lib.licenses.mit; + broken = false; +}