From bba779d2197d561258e74c56284356434196ced3 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Sun, 6 Nov 2022 18:31:41 +0000 Subject: [PATCH] pureMD5: init at 2.1.4 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/pureMD5.nix | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 pkgs/pureMD5.nix diff --git a/manifest.dhall b/manifest.dhall index 35f3755b..a9c1f399 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -471,6 +471,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "prometheus-proc" "0.1.4.0" , callHackage "proteaaudio-sdl" "0.9.2" , callHackage "psqueues" "0.2.7.3" + , callHackage "pureMD5" "2.1.4" , callHackage "quickcheck-classes" "0.6.5.0" , callHackage "quickcheck-dynamic" "2.0.0" , callHackage "quickcheck-instances" "0.3.28" diff --git a/overlay.nix b/overlay.nix index 603da056..0cd6c5cc 100644 --- a/overlay.nix +++ b/overlay.nix @@ -655,6 +655,8 @@ self: with pkgs.haskell.lib; { psqueues = self.callPackage (./pkgs/psqueues.nix) { }; + pureMD5 = self.callPackage (./pkgs/pureMD5.nix) { }; + quickcheck-classes = self.callPackage (./pkgs/quickcheck-classes.nix) { }; quickcheck-dynamic = self.callPackage (./pkgs/quickcheck-dynamic.nix) { }; diff --git a/pkgs/pureMD5.nix b/pkgs/pureMD5.nix new file mode 100644 index 00000000..10b50630 --- /dev/null +++ b/pkgs/pureMD5.nix @@ -0,0 +1,51 @@ +{ mkDerivation +, base +, binary +, bytestring +, cereal +, crypto-api +, crypto-api-tests +, lib +, pretty-hex +, QuickCheck +, tagged +, test-framework +, test-framework-quickcheck2 +}: +mkDerivation { + pname = "pureMD5"; + version = "2.1.4"; + sha256 = "782beec0a020e30eae65b7ce735c0cbb3e8bd886e2e564ac9d06f21479df9363"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + base + binary + bytestring + cereal + crypto-api + tagged + ]; + testHaskellDepends = [ + base + binary + bytestring + cereal + crypto-api-tests + pretty-hex + QuickCheck + test-framework + test-framework-quickcheck2 + ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + description = "A Haskell-only implementation of the MD5 digest (hash) algorithm"; + license = lib.licenses.bsd3; + broken = false; +} -- GitLab