From e8319f54d826bb6620fc5ec1a1b67625e82a177a Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Tue, 18 Oct 2022 17:58:18 +0100
Subject: [PATCH] hspec-contrib: init at 0.5.1.1

---
 manifest.dhall         |  1 +
 overlay.nix            |  2 ++
 pkgs/hspec-contrib.nix | 18 ++++++++++++++++++
 3 files changed, 21 insertions(+)
 create mode 100644 pkgs/hspec-contrib.nix

diff --git a/manifest.dhall b/manifest.dhall
index 733005a0..9554d4bc 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -201,6 +201,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
         (None Text)
     , callHackage "hslua-aeson" "2.2.1"
     , callHackage "hspec" "2.10.3"
+    , callHackage "hspec-contrib" "0.5.1.1"
     , callHackage "hspec-core" "2.10.0.1"
     , callHackage "hspec-discover" "2.10.0.1"
     , callHackage "hspec-meta" "2.9.3"
diff --git a/overlay.nix b/overlay.nix
index 1b90d3e0..d142bf6e 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -213,6 +213,8 @@ final: prev: with pkgs.haskell.lib; {
 
     hspec = prev.callPackage (./pkgs/hspec.nix) { };
 
+    hspec-contrib = prev.callPackage (./pkgs/hspec-contrib.nix) { };
+
     hspec-core = prev.callPackage (./pkgs/hspec-core.nix) { };
 
     hspec-discover = prev.callPackage (./pkgs/hspec-discover.nix) { };
diff --git a/pkgs/hspec-contrib.nix b/pkgs/hspec-contrib.nix
new file mode 100644
index 00000000..4f761e27
--- /dev/null
+++ b/pkgs/hspec-contrib.nix
@@ -0,0 +1,18 @@
+{ mkDerivation, base, hspec, hspec-core, hspec-discover, HUnit, lib
+, QuickCheck
+}:
+mkDerivation {
+  pname = "hspec-contrib";
+  version = "0.5.1.1";
+  sha256 = "fde656a694dafbb8e147c1ca41eff5eef6a273f79fbae1bc0722e128852dcbdb";
+  libraryHaskellDepends = [ base hspec-core HUnit ];
+  testHaskellDepends = [ base hspec hspec-core HUnit QuickCheck ];
+  testToolDepends = [ hspec-discover ];
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  hyperlinkSource = false;
+  homepage = "http://hspec.github.io/";
+  description = "Contributed functionality for Hspec";
+  license = lib.licenses.mit;
+}
\ No newline at end of file
-- 
GitLab