From 5b47bcbf26bfee0c5ec63e6e2f1f744f958c666f Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sat, 5 Nov 2022 08:42:25 +0000
Subject: [PATCH] http-media: init at 0.8.0.0

---
 manifest.dhall      |  1 +
 overlay.nix         |  2 ++
 pkgs/http-media.nix | 49 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 52 insertions(+)
 create mode 100644 pkgs/http-media.nix

diff --git a/manifest.dhall b/manifest.dhall
index 2235cb05..460e9848 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 11024890..186ab9d5 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 00000000..c8d2c646
--- /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;
+}
-- 
GitLab