From e3b75f6afeeb15aea92d02c21e9dab420395dbb5 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Mon, 7 Nov 2022 11:29:28 +0000
Subject: [PATCH] tasty-th: init at 0.1.7

---
 manifest.dhall    |  1 +
 overlay.nix       |  2 ++
 pkgs/tasty-th.nix | 34 ++++++++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 pkgs/tasty-th.nix

diff --git a/manifest.dhall b/manifest.dhall
index 8f2f5dc3..59af2a42 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -660,6 +660,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "tasty-lua" "1.0.2"
     , callHackage "tasty-silver" "3.3.1.1"
     , callHackage "tasty-smallcheck" "0.8.2"
+    , callHackage "tasty-th" "0.1.7"
     , callHackage "tasty-quickcheck" "0.10.2"
     , callHackage "tasty-wai" "0.1.2.0"
     , callHackage "temporary" "1.3"
diff --git a/overlay.nix b/overlay.nix
index 10bc37a7..c1582c59 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -973,6 +973,8 @@ self: with pkgs.haskell.lib; {
 
   tasty-smallcheck = self.callPackage (./pkgs/tasty-smallcheck.nix) { };
 
+  tasty-th = self.callPackage (./pkgs/tasty-th.nix) { };
+
   tasty-wai = self.callPackage (./pkgs/tasty-wai.nix) { };
 
   temporary = self.callPackage (./pkgs/temporary.nix) { };
diff --git a/pkgs/tasty-th.nix b/pkgs/tasty-th.nix
new file mode 100644
index 00000000..07024f41
--- /dev/null
+++ b/pkgs/tasty-th.nix
@@ -0,0 +1,34 @@
+{ mkDerivation
+, base
+, haskell-src-exts
+, lib
+, tasty
+, tasty-hunit
+, template-haskell
+}:
+mkDerivation {
+  pname = "tasty-th";
+  version = "0.1.7";
+  sha256 = "435aac8f317e2f8cb1aa96fb3f7c9003c1ac28e6d3ca4c3c23f5142178de512c";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    base
+    haskell-src-exts
+    tasty
+    template-haskell
+  ];
+  testHaskellDepends = [ base tasty-hunit ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "http://github.com/bennofs/tasty-th";
+  description = "Automatic tasty test case discovery using TH";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab