From 37d0104f4537a51db9fd5f6107172f69f37bdd5a Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Mon, 7 Nov 2022 14:48:05 +0000
Subject: [PATCH] hspec-wai: init at 0.11.1

---
 manifest.dhall     |  1 +
 overlay.nix        |  2 ++
 pkgs/hspec-wai.nix | 64 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 67 insertions(+)
 create mode 100644 pkgs/hspec-wai.nix

diff --git a/manifest.dhall b/manifest.dhall
index 19cf566a..38355dbd 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -398,6 +398,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "hspec-expectations" "0.8.2"
     , callHackage "hspec-megaparsec" "2.2.0"
     , callHackage "hspec-meta" "2.9.3"
+    , callHackage "hspec-wai" "0.11.1"
     , callHackage "hspec" "2.10.3"
     , callHackage "httpd-shed" "0.4.1.1"
     , callHackage "http-api-data" "0.5"
diff --git a/overlay.nix b/overlay.nix
index 923bf5fd..c6c73f3e 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -587,6 +587,8 @@ self: with pkgs.haskell.lib; {
 
   hspec-meta = self.callPackage (./pkgs/hspec-meta.nix) { };
 
+  hspec-wai = self.callPackage (./pkgs/hspec-wai.nix) { };
+
   http-api-data = self.callPackage (./pkgs/http-api-data.nix) { };
 
   http-client = self.callPackage (./pkgs/http-client.nix) { };
diff --git a/pkgs/hspec-wai.nix b/pkgs/hspec-wai.nix
new file mode 100644
index 00000000..f349fcda
--- /dev/null
+++ b/pkgs/hspec-wai.nix
@@ -0,0 +1,64 @@
+{ mkDerivation
+, base
+, base-compat
+, bytestring
+, case-insensitive
+, hspec
+, hspec-core
+, hspec-expectations
+, http-types
+, lib
+, QuickCheck
+, text
+, transformers
+, wai
+, wai-extra
+}:
+mkDerivation {
+  pname = "hspec-wai";
+  version = "0.11.1";
+  sha256 = "32a86bf44ff70345718102f013f6dded35a96ceeda1aa4cc132af9c2a29e910f";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    base
+    base-compat
+    bytestring
+    case-insensitive
+    hspec-core
+    hspec-expectations
+    http-types
+    QuickCheck
+    text
+    transformers
+    wai
+    wai-extra
+  ];
+  testHaskellDepends = [
+    base
+    base-compat
+    bytestring
+    case-insensitive
+    hspec
+    hspec-core
+    hspec-expectations
+    http-types
+    QuickCheck
+    text
+    transformers
+    wai
+    wai-extra
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/hspec/hspec-wai#readme";
+  description = "Experimental Hspec support for testing WAI applications";
+  license = lib.licenses.mit;
+  broken = false;
+}
-- 
GitLab