From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:44282) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaedI-0004vw-L9 for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaedF-0003qZ-5Z for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:19 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53627) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaedC-0003lu-Sv for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:16 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iaedB-0006K4-Oc for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:13 -0500 Subject: [bug#38423] [PATCH 48/49] gnu: Add postgrest. Resent-Message-ID: From: Robert Vollmert Date: Fri, 29 Nov 2019 12:37:50 +0100 Message-Id: <20191129113751.82405-48-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-apps.scm (postgrest): New variable. --- gnu/packages/haskell-apps.scm | 67 +++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/haskell-apps.scm b/gnu/packages/haskell-apps.scm index d5c31cbb0b..1cca90f429 100644 --- a/gnu/packages/haskell-apps.scm +++ b/gnu/packages/haskell-apps.scm @@ -724,3 +724,70 @@ advanced user's otherwise working script to fail under future circumstances. code in a file, just clean up import statements and a few other tedious items. This tool tries to help where necessary without getting in the way.") (license license:bsd-3))) + +(define-public postgrest + (package + (name "postgrest") + (version "6.0.2") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/postgrest/postgrest-" + version + ".tar.gz")) + (sha256 + (base32 + "0c1yapjwsccqmj6jh8bkgv15p83dh7bd7ib68cd80pi3n9dplqvw")))) + (build-system haskell-build-system) + (arguments `(#:tests? #f)) ; tests require a running postgresql server + (inputs + `(("ghc-aeson" ,ghc-aeson) + ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint) + ("ghc-base64-bytestring" ,ghc-base64-bytestring) + ("ghc-case-insensitive" ,ghc-case-insensitive) + ("ghc-cassava" ,ghc-cassava) + ("ghc-configurator-pg" ,ghc-configurator-pg) + ("ghc-contravariant" ,ghc-contravariant) + ("ghc-contravariant-extras" + ,ghc-contravariant-extras) + ("ghc-either" ,ghc-either) + ("ghc-gitrev" ,ghc-gitrev) + ("ghc-hasql" ,ghc-hasql) + ("ghc-hasql-pool" ,ghc-hasql-pool) + ("ghc-hasql-transaction" ,ghc-hasql-transaction) + ("ghc-heredoc" ,ghc-heredoc) + ("ghc-http" ,ghc-http) + ("ghc-http-types" ,ghc-http-types) + ("ghc-insert-ordered-containers" + ,ghc-insert-ordered-containers) + ("ghc-interpolatedstring-perl6" + ,ghc-interpolatedstring-perl6) + ("ghc-jose" ,ghc-jose) + ("ghc-lens" ,ghc-lens) + ("ghc-lens-aeson" ,ghc-lens-aeson) + ("ghc-network-uri" ,ghc-network-uri) + ("ghc-optparse-applicative" + ,ghc-optparse-applicative) + ("ghc-protolude" ,ghc-protolude) + ("ghc-ranged-sets" ,ghc-ranged-sets) + ("ghc-regex-tdfa" ,ghc-regex-tdfa) + ("ghc-scientific" ,ghc-scientific) + ("ghc-swagger2" ,ghc-swagger2) + ("ghc-unordered-containers" + ,ghc-unordered-containers) + ("ghc-vector" ,ghc-vector) + ("ghc-wai" ,ghc-wai) + ("ghc-wai-cors" ,ghc-wai-cors) + ("ghc-wai-extra" ,ghc-wai-extra) + ("ghc-wai-middleware-static" + ,ghc-wai-middleware-static) + ("ghc-cookie" ,ghc-cookie) + ("ghc-auto-update" ,ghc-auto-update) + ("ghc-warp" ,ghc-warp) + ("ghc-retry" ,ghc-retry))) + (home-page "https://postgrest.org") + (synopsis "REST API for any Postgres database") + (description + "Reads the schema of a PostgreSQL database and creates RESTful routes for the tables and views, supporting all HTTP verbs that security permits.") + (license license:expat))) -- 2.21.0 (Apple Git-122.2)