diff --git a/manifest.dhall b/manifest.dhall index 6f2907ae81317abff768f5d0b9605f79353aaebe..a6555de5198ee6abaf7162d2f081dca1ea87d145 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -322,6 +322,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "lucid" "2.11.1" , callHackage "net-mqtt" "0.8.2.2" , callHackage "memory" "0.18.0" + , callHackage "mockery" "0.3.5" , callHackage "microstache" "1.0.2.2" , callHackage "monad-control" "1.0.3.1" , callHackage "monad-time" "0.4.0.0" diff --git a/overlay.nix b/overlay.nix index 2d573eff195f033eb1c1d9cac8d0a49b6ba73a2c..4829006ac5fb25ac83747843e898c253a0746d72 100644 --- a/overlay.nix +++ b/overlay.nix @@ -375,6 +375,8 @@ final: prev: with pkgs.haskell.lib; { microstache = prev.callPackage (./pkgs/microstache.nix) { }; + mockery = prev.callPackage (./pkgs/mockery.nix) { }; + monad-control = prev.callPackage (./pkgs/monad-control.nix) { }; monad-par = prev.callPackage (./pkgs/monad-par.nix) { }; diff --git a/pkgs/mockery.nix b/pkgs/mockery.nix new file mode 100644 index 0000000000000000000000000000000000000000..2501696a7f6d2e002dbc12db1e7096c0e4b36164 --- /dev/null +++ b/pkgs/mockery.nix @@ -0,0 +1,48 @@ +{ mkDerivation +, base +, base-compat +, bytestring +, directory +, filepath +, hspec +, lib +, logging-facade +, temporary +}: +mkDerivation { + pname = "mockery"; + version = "0.3.5"; + sha256 = "b7a1edacd3d32dc7f0e28c67877209d3ca3551d1da186f6445f825f3477dd727"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + base + base-compat + bytestring + directory + filepath + logging-facade + temporary + ]; + testHaskellDepends = [ + base + base-compat + bytestring + directory + filepath + hspec + logging-facade + temporary + ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + description = "Support functions for automated testing"; + license = lib.licenses.mit; + broken = false; +}