From 5b296b5a70d2ee5ee5411c9f4d208c8e2dbca556 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sat, 5 Nov 2022 12:51:19 +0000
Subject: [PATCH] cryptohash: init at 0.11.9

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

diff --git a/manifest.dhall b/manifest.dhall
index c822bf7d..688d5f61 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -163,6 +163,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
         (Some "cursor-dirforest-gen")
     , callHackage "cryptonite" "0.30"
     , callHackage "cryptohash-sha1" "0.11.101.0"
+    , callHackage "cryptohash" "0.11.9"
     , callHackage "data-fix" "0.3.2"
     , callHackage "dec" "0.0.5"
     , callHackage "deriving-aeson" "0.2.8"
diff --git a/overlay.nix b/overlay.nix
index d1df280a..130ce09f 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -157,6 +157,8 @@ final: prev: with pkgs.haskell.lib; {
 
   criterion = prev.callPackage (./pkgs/criterion.nix) { };
 
+  cryptohash = prev.callPackage (./pkgs/cryptohash.nix) { };
+
   cryptohash-sha1 = prev.callPackage (./pkgs/cryptohash-sha1.nix) { };
 
   cryptonite = prev.callPackage (./pkgs/cryptonite.nix) { };
diff --git a/pkgs/cryptohash.nix b/pkgs/cryptohash.nix
new file mode 100644
index 00000000..b91891b0
--- /dev/null
+++ b/pkgs/cryptohash.nix
@@ -0,0 +1,53 @@
+{ mkDerivation
+, base
+, byteable
+, bytestring
+, criterion
+, cryptonite
+, ghc-prim
+, HUnit
+, lib
+, memory
+, QuickCheck
+, tasty
+, tasty-hunit
+, tasty-quickcheck
+}:
+mkDerivation {
+  pname = "cryptohash";
+  version = "0.11.9";
+  sha256 = "c28f847fc1fcd65b6eea2e74a100300af940919f04bb21d391f6a773968f22fb";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    base
+    byteable
+    bytestring
+    cryptonite
+    ghc-prim
+    memory
+  ];
+  testHaskellDepends = [
+    base
+    byteable
+    bytestring
+    HUnit
+    QuickCheck
+    tasty
+    tasty-hunit
+    tasty-quickcheck
+  ];
+  benchmarkHaskellDepends = [ base byteable bytestring criterion ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "http://github.com/vincenthz/hs-cryptohash";
+  description = "collection of crypto hashes, fast, pure and practical";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab