X-Git-Url: https://git.hcoop.net/jackhill/guix/guix.git/blobdiff_plain/d39512776f85087234998765bbe2f2ebdcee511a..c5199f2918d04f692112521ef100e2146dbc91a4:/gnu/packages/haskell-web.scm diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm index f9af538c63..98d163566c 100644 --- a/gnu/packages/haskell-web.scm +++ b/gnu/packages/haskell-web.scm @@ -9,6 +9,7 @@ ;;; Copyright © 2019 John Soo ;;; Copyright © 2020 Alexandru-Sergiu Marton ;;; Copyright © 2020 Marius Bakke +;;; Copyright © 2020 Kyle Meyer ;;; ;;; This file is part of GNU Guix. ;;; @@ -197,7 +198,23 @@ both client and server code).") ("ghc-network-uri" ,ghc-network-uri) ("ghc-split" ,ghc-split))) (arguments - `(#:tests? #f)) ; FIXME: currently missing libraries used for tests. + `(#:tests? #f ; FIXME: currently missing libraries used for tests. + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'create-simple-paths-module + (lambda _ + (call-with-output-file "Paths_HTTP.hs" + (lambda (port) + (format port "\ +{-# LANGUAGE CPP #-} +{-# LANGUAGE NoRebindableSyntax #-} +{-# OPTIONS_GHC -fno-warn-missing-import-lists #-} +module Paths_HTTP (version) where +import Data.Version (Version(..)) +version :: Version +version = Version [~a] [] +" (string-map (lambda (chr) (if (eq? chr #\.) #\, chr)) ,version)))) + #t))))) (home-page "https://github.com/haskell/HTTP") (synopsis "Library for client-side HTTP") (description @@ -935,6 +952,7 @@ entity decoding bugfixes applied.") "1jhabz1lbbv6yqxqiybifi86cb5xlsadrn368n5dd0wzzc7ja4iz")))) (build-system haskell-build-system) (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing. + (outputs '("out" "static" "doc")) (inputs `(("ghc-attoparsec" ,ghc-attoparsec) ("ghc-base-compat" ,ghc-base-compat) @@ -1471,6 +1489,7 @@ derivations of regular expressions.") (base32 "0836k65px3w9c5h1h2bmzq5a7mp6ajxwvfg3pfr2kbxwkgc0j63j")))) (build-system haskell-build-system) + (outputs '("out" "static" "doc")) (inputs `(("ghc-hxt-charproperties" ,ghc-hxt-charproperties) ("ghc-hxt-unicode" ,ghc-hxt-unicode) @@ -1927,3 +1946,38 @@ as frontend to hjsmin.") "This package provides a data type and ToJSON/FromJSON instances for Bower's package manifest file, bower.json.") (license license:expat))) + +(define-public ghc-dav + (package + (name "ghc-dav") + (version "1.3.4") + (source + (origin + (method url-fetch) + (uri (string-append "https://hackage.haskell.org/package/DAV/DAV-" + version ".tar.gz")) + (sha256 + (base32 "1isvi4fahq70lzxfz23as7qzkc01g7kba568l6flrgd0j1984fsy")))) + (build-system haskell-build-system) + (inputs + `(("ghc-case-insensitive" ,ghc-case-insensitive) + ("ghc-data-default" ,ghc-data-default) + ("ghc-exceptions" ,ghc-exceptions) + ("ghc-http-client" ,ghc-http-client) + ("ghc-http-client-tls" ,ghc-http-client-tls) + ("ghc-http-types" ,ghc-http-types) + ("ghc-lens" ,ghc-lens) + ("ghc-transformers-base" ,ghc-transformers-base) + ("ghc-transformers-compat" ,ghc-transformers-compat) + ("ghc-utf8-string" ,ghc-utf8-string) + ("ghc-xml-conduit" ,ghc-xml-conduit) + ("ghc-xml-hamlet" ,ghc-xml-hamlet) + ("ghc-network" ,ghc-network) + ("ghc-network-uri" ,ghc-network-uri) + ("ghc-optparse-applicative" ,ghc-optparse-applicative))) + (home-page "http://floss.scru.org/hDAV") + (synopsis "RFC 4918 WebDAV support") + (description "This package provides a library for the Web Distributed +Authoring and Versioning (WebDAV) extensions to HTTP as well an executable, +@command{hdav}, for command-line operation.") + (license license:gpl3)))