From f6eadddfb2593020d06f5fc38f4bda6d2790587d Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Mon, 7 Nov 2022 12:20:26 +0000
Subject: [PATCH] cryptohash-md5: init at 0.11.101.0

---
 manifest.dhall          |  1 +
 overlay.nix             |  2 ++
 pkgs/cryptohash-md5.nix | 43 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 46 insertions(+)
 create mode 100644 pkgs/cryptohash-md5.nix

diff --git a/manifest.dhall b/manifest.dhall
index 15917c1d..349619ce 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -197,6 +197,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "cursor-gen" "0.4.0.0"
     , callHackage "cursor" "0.3.2.0"
     , callHackage "cryptonite" "0.30"
+    , callHackage "cryptohash-md5" "0.11.101.0"
     , callHackage "cryptohash-sha1" "0.11.101.0"
     , callHackage "cryptohash-sha256" "0.11.102.1"
     , callHackage "cryptohash" "0.11.9"
diff --git a/overlay.nix b/overlay.nix
index 86a72493..2a91f858 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -235,6 +235,8 @@ self: with pkgs.haskell.lib; {
 
   cryptohash = self.callPackage (./pkgs/cryptohash.nix) { };
 
+  cryptohash-md5 = self.callPackage (./pkgs/cryptohash-md5.nix) { };
+
   cryptohash-sha1 = self.callPackage (./pkgs/cryptohash-sha1.nix) { };
 
   cryptohash-sha256 = self.callPackage (./pkgs/cryptohash-sha256.nix) { };
diff --git a/pkgs/cryptohash-md5.nix b/pkgs/cryptohash-md5.nix
new file mode 100644
index 00000000..9bb41341
--- /dev/null
+++ b/pkgs/cryptohash-md5.nix
@@ -0,0 +1,43 @@
+{ mkDerivation
+, base
+, base16-bytestring
+, bytestring
+, criterion
+, lib
+, pureMD5
+, tasty
+, tasty-hunit
+, tasty-quickcheck
+}:
+mkDerivation {
+  pname = "cryptohash-md5";
+  version = "0.11.101.0";
+  sha256 = "3b08db0ae39df2b44e83053ad30d7546a4c6200a852c22a240a7e03ae1080f05";
+  revision = "1";
+  editedCabalFile = "0s2f5cd46lqymmbpcnzlxsim5qk8yrr52j5mmi31zrhd24b3bqln";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [ base bytestring ];
+  testHaskellDepends = [
+    base
+    base16-bytestring
+    bytestring
+    pureMD5
+    tasty
+    tasty-hunit
+    tasty-quickcheck
+  ];
+  benchmarkHaskellDepends = [ base bytestring criterion ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/hvr/cryptohash-md5";
+  description = "Fast, pure and practical MD5 implementation";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab