From 81c18c7a70a015ee63809177be9389da76e949cc Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Mon, 7 Nov 2022 11:58:58 +0000 Subject: [PATCH] test-framework-th: init at 0.2.4 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/test-framework-th.nix | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 pkgs/test-framework-th.nix diff --git a/manifest.dhall b/manifest.dhall index cba7ed44..340e6c39 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -709,6 +709,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "terminal-size" "0.3.3" , callHackage "test-framework" "0.8.2.0" , callHackage "test-framework-hunit" "0.3.0.2" + , callHackage "test-framework-th" "0.2.4" , callHackage "test-framework-quickcheck2" "0.3.0.5" , callHackage "texmath" "0.12.5.4" , callHackage "text-conversions" "0.3.1.1" diff --git a/overlay.nix b/overlay.nix index 09d5f23e..efdc5ba1 100644 --- a/overlay.nix +++ b/overlay.nix @@ -1071,6 +1071,8 @@ self: with pkgs.haskell.lib; { test-framework-quickcheck2 = self.callPackage (./pkgs/test-framework-quickcheck2.nix) { }; + test-framework-th = self.callPackage (./pkgs/test-framework-th.nix) { }; + texmath = self.callPackage (./pkgs/texmath.nix) { }; text-conversions = self.callPackage (./pkgs/text-conversions.nix) { }; diff --git a/pkgs/test-framework-th.nix b/pkgs/test-framework-th.nix new file mode 100644 index 00000000..42dea59c --- /dev/null +++ b/pkgs/test-framework-th.nix @@ -0,0 +1,36 @@ +{ mkDerivation +, base +, haskell-src-exts +, language-haskell-extract +, lib +, regex-posix +, template-haskell +, test-framework +}: +mkDerivation { + pname = "test-framework-th"; + version = "0.2.4"; + sha256 = "8b780d9e3edd8d91e24f72d9fa1f80420e52959428ad7c22d0694901a43f9c8a"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + base + haskell-src-exts + language-haskell-extract + regex-posix + template-haskell + test-framework + ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "http://github.com/finnsson/test-generator"; + description = "Automagically generate the HUnit- and Quickcheck-bulk-code using Template Haskell"; + license = lib.licenses.bsd3; + broken = false; +} -- GitLab