From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42505) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaec8-0004Ek-Ej for guix-patches@gnu.org; Fri, 29 Nov 2019 06:39:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaec4-0001GS-RV for guix-patches@gnu.org; Fri, 29 Nov 2019 06:39:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53545) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaec4-0001Fo-NZ for guix-patches@gnu.org; Fri, 29 Nov 2019 06:39:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iaec4-0006CO-LY for guix-patches@gnu.org; Fri, 29 Nov 2019 06:39:04 -0500 Subject: [bug#38423] [PATCH 10/49] gnu: Add ghc-wai-middleware-static. Resent-Message-ID: From: Robert Vollmert Date: Fri, 29 Nov 2019 12:37:12 +0100 Message-Id: <20191129113751.82405-10-rob@vllmrt.net> In-Reply-To: <20191129113751.82405-1-rob@vllmrt.net> References: <20191129113751.82405-1-rob@vllmrt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38423@debbugs.gnu.org Cc: Robert Vollmert * gnu/packages/haskell-web.scm (ghc-wai-middleware-static): New package. --- gnu/packages/haskell-web.scm | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm index 7f54568399..ef43e8222d 100644 --- a/gnu/packages/haskell-web.scm +++ b/gnu/packages/haskell-web.scm @@ -1641,3 +1641,41 @@ requirements of downstream users (e.g. Debian).") "This package provides an implemenation of Cross-Origin resource sharing (CORS) for Wai that aims to be compliant with http://www.w3.org/TR/cors.") (license license:expat))) + +(define-public ghc-wai-middleware-static + (package + (name "ghc-wai-middleware-static") + (version "0.8.2") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/wai-middleware-static/wai-middleware-static-" + version + ".tar.gz")) + (sha256 + (base32 + "1z5yapcf8j9w71f2na30snmalsajlyi8an2f9qrjdmajabyykr0b")))) + (build-system haskell-build-system) + (inputs + `(("ghc-cryptonite" ,ghc-cryptonite) + ("ghc-memory" ,ghc-memory) + ("ghc-expiring-cache-map" + ,ghc-expiring-cache-map) + ("ghc-http-types" ,ghc-http-types) + ("ghc-mime-types" ,ghc-mime-types) + ("ghc-old-locale" ,ghc-old-locale) + ("ghc-semigroups" ,ghc-semigroups) + ("ghc-wai" ,ghc-wai))) + (arguments + `(#:cabal-revision + ("2" + "17vq38dh7x1kqzfwla1s0rldd5hzm5mcrx49sjlzy8b66gd2n3ac"))) + (home-page + "https://github.com/scotty-web/wai-middleware-static") + (synopsis + "WAI middleware that serves requests to static files.") + (description + "WAI middleware that intercepts requests to static files and serves +them if they exist.") + (license license:bsd-3))) -- 2.21.0 (Apple Git-122.2)