From 85f1fcd1cf04a7eeb6f21dc1ce4df78f0183ad04 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Mon, 7 Nov 2022 18:25:18 +0000 Subject: [PATCH] hspec-smallcheck: init at 0.5.3 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/hspec-smallcheck.nix | 49 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 pkgs/hspec-smallcheck.nix diff --git a/manifest.dhall b/manifest.dhall index 0a7355ec..e66dc164 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -402,6 +402,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "hspec-hedgehog" "0.0.1.2" , callHackage "hspec-megaparsec" "2.2.0" , callHackage "hspec-meta" "2.9.3" + , callHackage "hspec-smallcheck" "0.5.3" , callHackage "hspec-wai" "0.11.1" , callHackage "hspec" "2.10.3" , callHackage "httpd-shed" "0.4.1.1" diff --git a/overlay.nix b/overlay.nix index b4eff5db..b1845653 100644 --- a/overlay.nix +++ b/overlay.nix @@ -595,6 +595,8 @@ self: with pkgs.haskell.lib; { hspec-meta = self.callPackage (./pkgs/hspec-meta.nix) { }; + hspec-smallcheck = self.callPackage (./pkgs/hspec-smallcheck.nix) { }; + hspec-wai = self.callPackage (./pkgs/hspec-wai.nix) { }; http-api-data = self.callPackage (./pkgs/http-api-data.nix) { }; diff --git a/pkgs/hspec-smallcheck.nix b/pkgs/hspec-smallcheck.nix new file mode 100644 index 00000000..1f470379 --- /dev/null +++ b/pkgs/hspec-smallcheck.nix @@ -0,0 +1,49 @@ +{ mkDerivation +, base +, base-orphans +, call-stack +, hspec +, hspec-core +, hspec-discover +, HUnit +, lib +, QuickCheck +, smallcheck +}: +mkDerivation { + pname = "hspec-smallcheck"; + version = "0.5.3"; + sha256 = "f5810a4be4878fd3e02efc9895a2534f5783387c98aae0d9787f50da2eac5032"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + base + call-stack + hspec-core + HUnit + smallcheck + ]; + testHaskellDepends = [ + base + base-orphans + call-stack + hspec + hspec-core + HUnit + QuickCheck + smallcheck + ]; + testToolDepends = [ hspec-discover ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "http://hspec.github.io/"; + description = "SmallCheck support for the Hspec testing framework"; + license = lib.licenses.mit; + broken = false; +} -- GitLab