diff --git a/flake.lock b/flake.lock
index a3093295d49ad2eb4e58ba9ebac802bb7fa2b37d..94fcd7a6464394b8daf9075455ef4873cb09e773 100644
--- a/flake.lock
+++ b/flake.lock
@@ -66,6 +66,22 @@
         "type": "github"
       }
     },
+    "cryptohash-sha1": {
+      "flake": false,
+      "locked": {
+        "lastModified": 1660587782,
+        "narHash": "sha256-7narJN/P+e3G7A9KtMe3uoMPi8DO9FPwQu7KG6NaixQ=",
+        "owner": "haskell-hvr",
+        "repo": "cryptohash-sha1",
+        "rev": "f82ceae0d2ad23cc5d4e7f69367b4b4796b852b8",
+        "type": "github"
+      },
+      "original": {
+        "owner": "haskell-hvr",
+        "repo": "cryptohash-sha1",
+        "type": "github"
+      }
+    },
     "doctest": {
       "flake": false,
       "locked": {
@@ -318,6 +334,7 @@
         "all-cabal-hashes": "all-cabal-hashes",
         "cache-effectful": "cache-effectful",
         "cborg": "cborg",
+        "cryptohash-sha1": "cryptohash-sha1",
         "doctest": "doctest",
         "double-conversion": "double-conversion",
         "ed25519": "ed25519",
diff --git a/flake.nix b/flake.nix
index 500ea317fac34e58f1ade6e1712b0d5ce978f4d9..7f8f08670479aea5387cad0c09e5972aef48b51b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -16,6 +16,10 @@
       url = "github:parsonsmatt/cborg/05ca2063ff631667699bffbeee3a4a076943b905";
       flake = false;
     };
+    cryptohash-sha1 = {
+      url = "github:haskell-hvr/cryptohash-sha1";
+      flake = false;
+    };
     doctest = {
       url = "github:parsonsmatt/doctest/a5f696b80bb8220d284e34d90f0b94291b859e77";
       flake = false;
diff --git a/overlay.nix b/overlay.nix
index eb435473bdbf1ca1e94ab344843d5f1b8f2eaa6d..bd9eb342085f5ce4360efd33fbbef81569e74b93 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -85,7 +85,7 @@ final: prev: with pkgs.haskell.lib; {
 
   constraints = doJailbreak (prev.callHackage "constraints" "0.13.4" { });
 
-  cryptohash-sha1 = doJailbreak (prev.callHackage "cryptohash-sha1" "0.11.100.1" { });
+  cryptohash-sha1 = prev.callCabal2nix "cryptohash-sha1" inputs.cryptohash-sha1 { };
 
   cryptonite = prev.callHackage "cryptonite" "0.30" { };