From bc2d5b98a8272126944a2fbec66b0769e78adc4f Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Mon, 7 Nov 2022 14:41:44 +0000
Subject: [PATCH] crypto-api-tests: init at 0.3

---
 manifest.dhall            |  1 +
 overlay.nix               |  2 ++
 pkgs/crypto-api-tests.nix | 46 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 49 insertions(+)
 create mode 100644 pkgs/crypto-api-tests.nix

diff --git a/manifest.dhall b/manifest.dhall
index 9bd95c02..9b301259 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -203,6 +203,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "cryptohash-sha1" "0.11.101.0"
     , callHackage "cryptohash-sha256" "0.11.102.1"
     , callHackage "cryptohash" "0.11.9"
+    , callHackage "crypto-api-tests" "0.3"
     , callHackage "crypto-api" "0.13.3"
     , callHackage "daemons" "0.3.0"
     , callHackage "data-binary-ieee754" "0.4.4"
diff --git a/overlay.nix b/overlay.nix
index c7c42907..650c2628 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -239,6 +239,8 @@ self: with pkgs.haskell.lib; {
 
   crypto-api = self.callPackage (./pkgs/crypto-api.nix) { };
 
+  crypto-api-tests = self.callPackage (./pkgs/crypto-api-tests.nix) { };
+
   cryptohash = self.callPackage (./pkgs/cryptohash.nix) { };
 
   cryptohash-md5 = self.callPackage (./pkgs/cryptohash-md5.nix) { };
diff --git a/pkgs/crypto-api-tests.nix b/pkgs/crypto-api-tests.nix
new file mode 100644
index 00000000..77df528a
--- /dev/null
+++ b/pkgs/crypto-api-tests.nix
@@ -0,0 +1,46 @@
+{ mkDerivation
+, base
+, bytestring
+, cereal
+, crypto-api
+, directory
+, filepath
+, HUnit
+, lib
+, QuickCheck
+, test-framework
+, test-framework-hunit
+, test-framework-quickcheck2
+}:
+mkDerivation {
+  pname = "crypto-api-tests";
+  version = "0.3";
+  sha256 = "f44aecdd4ceb9da9f38330e84d9c17745a82b0611085ebb34442d2dce4207270";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = true;
+  libraryHaskellDepends = [
+    base
+    bytestring
+    cereal
+    crypto-api
+    directory
+    filepath
+    HUnit
+    QuickCheck
+    test-framework
+    test-framework-hunit
+    test-framework-quickcheck2
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "http://trac.haskell.org/crypto-api/wiki";
+  description = "A test framework and KATs for cryptographic operations";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab