From 1d13b63eeeaaf04b231c28500de30d29275be254 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sat, 5 Nov 2022 09:03:39 +0000
Subject: [PATCH] tasty-lua: init at 1.0.2

---
 manifest.dhall     |  1 +
 overlay.nix        |  2 ++
 pkgs/tasty-lua.nix | 57 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 60 insertions(+)
 create mode 100644 pkgs/tasty-lua.nix

diff --git a/manifest.dhall b/manifest.dhall
index 4ef6bb6a..8f1d5b18 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -485,6 +485,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
         "https://github.com/UnkindPartition/tasty"
         (None Text)
         (Some "hunit")
+    , callHackage "tasty-lua" "1.0.2"
     , callHackage "tasty-hslua" "1.0.2"
     , callHackage "tasty-golden" "2.3.5"
     , callHackage "tasty-quickcheck" "0.10.2"
diff --git a/overlay.nix b/overlay.nix
index b0db0c56..a7535923 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -607,6 +607,8 @@ final: prev: with pkgs.haskell.lib; {
 
   tasty-hunit = prev.callPackage (./pkgs/tasty-hunit.nix) { };
 
+  tasty-lua = prev.callPackage (./pkgs/tasty-lua.nix) { };
+
   tasty-quickcheck = prev.callPackage (./pkgs/tasty-quickcheck.nix) { };
 
   tasty-wai = prev.callPackage (./pkgs/tasty-wai.nix) { };
diff --git a/pkgs/tasty-lua.nix b/pkgs/tasty-lua.nix
new file mode 100644
index 00000000..f0e52570
--- /dev/null
+++ b/pkgs/tasty-lua.nix
@@ -0,0 +1,57 @@
+{ mkDerivation
+, base
+, bytestring
+, directory
+, file-embed
+, filepath
+, hslua-core
+, hslua-marshalling
+, lib
+, lua-arbitrary
+, QuickCheck
+, tasty
+, tasty-hunit
+, text
+}:
+mkDerivation {
+  pname = "tasty-lua";
+  version = "1.0.2";
+  sha256 = "9b37ed879487ea31dec48c5f1823e445de9bb29ef8ad893de7106f2dd9dbdeee";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    base
+    bytestring
+    file-embed
+    hslua-core
+    hslua-marshalling
+    lua-arbitrary
+    QuickCheck
+    tasty
+    text
+  ];
+  testHaskellDepends = [
+    base
+    bytestring
+    directory
+    filepath
+    hslua-core
+    hslua-marshalling
+    lua-arbitrary
+    QuickCheck
+    tasty
+    tasty-hunit
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/hslua/hslua";
+  description = "Write tests in Lua, integrate into tasty";
+  license = lib.licenses.mit;
+  broken = false;
+}
-- 
GitLab