diff --git a/manifest.dhall b/manifest.dhall index c822bf7d5a77ef81a3f2fcc7a4ad53e86feb64ad..688d5f61ba80cde0abb3a0574868211cb9258766 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 d1df280a869af89fd33d9d9bfffc695b37be5378..130ce09f5aedacab75758f1eece04c257305c655 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 0000000000000000000000000000000000000000..b91891b0da4c0337ce92b2b6cfab50082739b4a3 --- /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; +}