diff --git a/manifest.dhall b/manifest.dhall index 4ef6bb6aa951b3bfd6829c9b5e1d0fc2fc3cb80a..8f1d5b18771cde1daa5ea9aa02f6706c972f0479 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 b0db0c56cb2d48f7a8e8a8f1064ea51fe6519e95..a75359238c110a2bc94e35e699251b1e34c4e7b2 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 0000000000000000000000000000000000000000..f0e5257061fe6fe9759c457d0459d39ab1b758fd --- /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; +}