diff --git a/manifest.dhall b/manifest.dhall index cc2653f60ac1bf5cacad52c154edcea4a41cad63..050bf90b2ce2fd5c2e4ee245211c7e4b25b00c75 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 c4fd6081b906055252de15f6fd16b7fae67ad25d..830a69d117f3976452ff9d16e58201e53eee40f0 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 0000000000000000000000000000000000000000..b85868c20f755d7be09d3c81ac77548fbb24ec0e --- /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; +}