From ac03bb1fbd6ec682a14fe2f731ef9ee86a675cfb Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sat, 5 Nov 2022 09:43:56 +0000
Subject: [PATCH] wai-app-static: init at 3.1.7.4

---
 manifest.dhall          |   1 +
 overlay.nix             |   2 +
 pkgs/wai-app-static.nix | 107 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 110 insertions(+)
 create mode 100644 pkgs/wai-app-static.nix

diff --git a/manifest.dhall b/manifest.dhall
index cc2653f6..050bf90b 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -581,6 +581,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "vinyl" "0.14.3"
     , callHackage "void" "0.7.3"
     , callHackage "vty" "5.37"
+    , callHackage "wai-app-static" "3.1.7.4"
     , callHackage "wai-extra" "3.1.13.0"
     , callCabal2nix
         "wai-middleware-heartbeat"
diff --git a/overlay.nix b/overlay.nix
index c4fd6081..830a69d1 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -779,6 +779,8 @@ final: prev: with pkgs.haskell.lib; {
 
   wai = prev.callPackage (./pkgs/wai.nix) { };
 
+  wai-app-static = prev.callPackage (./pkgs/wai-app-static.nix) { };
+
   wai-extra = prev.callPackage (./pkgs/wai-extra.nix) { };
 
   wai-logger = prev.callPackage (./pkgs/wai-logger.nix) { };
diff --git a/pkgs/wai-app-static.nix b/pkgs/wai-app-static.nix
new file mode 100644
index 00000000..b85868c2
--- /dev/null
+++ b/pkgs/wai-app-static.nix
@@ -0,0 +1,107 @@
+{ mkDerivation
+, base
+, blaze-html
+, blaze-markup
+, bytestring
+, containers
+, cryptonite
+, directory
+, file-embed
+, filepath
+, hspec
+, http-date
+, http-types
+, lib
+, memory
+, mime-types
+, mockery
+, network
+, old-locale
+, optparse-applicative
+, template-haskell
+, temporary
+, text
+, time
+, transformers
+, unix-compat
+, unordered-containers
+, wai
+, wai-extra
+, warp
+, zlib
+}:
+mkDerivation {
+  pname = "wai-app-static";
+  version = "3.1.7.4";
+  sha256 = "647188444b19dc953bbfbab5611c81c1e1f27c31bac5dc31dd5de27cdbf01fc1";
+  isLibrary = true;
+  isExecutable = true;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    base
+    blaze-html
+    blaze-markup
+    bytestring
+    containers
+    cryptonite
+    directory
+    file-embed
+    filepath
+    http-date
+    http-types
+    memory
+    mime-types
+    old-locale
+    optparse-applicative
+    template-haskell
+    text
+    time
+    transformers
+    unix-compat
+    unordered-containers
+    wai
+    wai-extra
+    warp
+    zlib
+  ];
+  executableHaskellDepends = [
+    base
+    bytestring
+    containers
+    directory
+    mime-types
+    text
+  ];
+  testHaskellDepends = [
+    base
+    bytestring
+    filepath
+    hspec
+    http-date
+    http-types
+    mime-types
+    mockery
+    network
+    old-locale
+    temporary
+    text
+    time
+    transformers
+    unix-compat
+    wai
+    wai-extra
+    zlib
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "http://www.yesodweb.com/book/web-application-interface";
+  description = "WAI application for static serving";
+  license = lib.licenses.mit;
+  mainProgram = "warp";
+  broken = false;
+}
-- 
GitLab