From b01197908c2af1483b2ea2c0b0b0bffaf5413aad Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sat, 5 Nov 2022 09:02:07 +0000
Subject: [PATCH] tasty-hslua: init at 1.0.2

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

diff --git a/manifest.dhall b/manifest.dhall
index 8d0b8c09..552a79d7 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -484,6 +484,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
         "https://github.com/UnkindPartition/tasty"
         (None Text)
         (Some "hunit")
+    , callHackage "tasty-hslua" "1.0.2"
     , callHackage "tasty-golden" "2.3.5"
     , callHackage "tasty-quickcheck" "0.10.2"
     , callHackage "tasty-wai" "0.1.2.0"
diff --git a/overlay.nix b/overlay.nix
index 83e52cae..84345cfe 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -601,6 +601,8 @@ final: prev: with pkgs.haskell.lib; {
 
   tasty-hedgehog = prev.callPackage (./pkgs/tasty-hedgehog.nix) { };
 
+  tasty-hslua = prev.callPackage (./pkgs/tasty-hslua.nix) { };
+
   tasty-hunit = prev.callPackage (./pkgs/tasty-hunit.nix) { };
 
   tasty-quickcheck = prev.callPackage (./pkgs/tasty-quickcheck.nix) { };
diff --git a/pkgs/tasty-hslua.nix b/pkgs/tasty-hslua.nix
new file mode 100644
index 00000000..b5c12fd0
--- /dev/null
+++ b/pkgs/tasty-hslua.nix
@@ -0,0 +1,34 @@
+{ mkDerivation
+, base
+, bytestring
+, hslua-core
+, lib
+, tasty
+, tasty-hunit
+}:
+mkDerivation {
+  pname = "tasty-hslua";
+  version = "1.0.2";
+  sha256 = "28ddc669b81528b02a652452de3c0267916b5b58a4ffe43c7b0c3eca14ef6d45";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    base
+    bytestring
+    hslua-core
+    tasty
+    tasty-hunit
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://hslua.org/";
+  description = "Tasty helpers to test HsLua";
+  license = lib.licenses.mit;
+  broken = false;
+}
-- 
GitLab