From f90451e1ff85098e94dd4f60ee174b78eef02577 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Mon, 7 Nov 2022 18:37:30 +0000
Subject: [PATCH] uri-bytestring: init at 0.3.3.1

---
 manifest.dhall          |  1 +
 overlay.nix             |  2 ++
 pkgs/uri-bytestring.nix | 74 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 77 insertions(+)
 create mode 100644 pkgs/uri-bytestring.nix

diff --git a/manifest.dhall b/manifest.dhall
index 53d1c264..dd1b09c9 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -858,6 +858,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "unliftio-core" "0.2.0.1"
     , callHackage "unliftio" "0.2.23.0"
     , callHackage "unordered-containers" "0.2.19.1"
+    , callHackage "uri-bytestring" "0.3.3.1"
     , callHackage "uri-encode" "1.5.0.7"
     , callHackage "utf8-string" "1.0.2"
     , callHackage "utility-ht" "0.0.16"
diff --git a/overlay.nix b/overlay.nix
index f5917cb1..d001b48f 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -1351,6 +1351,8 @@ self: with pkgs.haskell.lib; {
 
   unordered-containers = self.callPackage (./pkgs/unordered-containers.nix) { };
 
+  uri-bytestring = self.callPackage (./pkgs/uri-bytestring.nix) { };
+
   uri-encode = self.callPackage (./pkgs/uri-encode.nix) { };
 
   utf8-string = self.callPackage (./pkgs/utf8-string.nix) { };
diff --git a/pkgs/uri-bytestring.nix b/pkgs/uri-bytestring.nix
new file mode 100644
index 00000000..436fa3a7
--- /dev/null
+++ b/pkgs/uri-bytestring.nix
@@ -0,0 +1,74 @@
+{ mkDerivation
+, attoparsec
+, base
+, base-compat
+, blaze-builder
+, bytestring
+, containers
+, criterion
+, deepseq
+, deepseq-generics
+, hedgehog
+, HUnit
+, lib
+, network-uri
+, safe
+, tasty
+, tasty-hedgehog
+, tasty-hunit
+, template-haskell
+, th-lift-instances
+, transformers
+}:
+mkDerivation {
+  pname = "uri-bytestring";
+  version = "0.3.3.1";
+  sha256 = "f3e7a0ac26111c426727fed11624efe9ce36ee2e74ca79570ec0985eb6111368";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    attoparsec
+    base
+    blaze-builder
+    bytestring
+    containers
+    template-haskell
+    th-lift-instances
+  ];
+  testHaskellDepends = [
+    attoparsec
+    base
+    base-compat
+    blaze-builder
+    bytestring
+    containers
+    hedgehog
+    HUnit
+    safe
+    tasty
+    tasty-hedgehog
+    tasty-hunit
+    transformers
+  ];
+  benchmarkHaskellDepends = [
+    base
+    blaze-builder
+    bytestring
+    criterion
+    deepseq
+    deepseq-generics
+    network-uri
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/Soostone/uri-bytestring";
+  description = "Haskell URI parsing as ByteStrings";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab