gnu: Add ghc-yesod-persistent.

* gnu/packages/haskell-web.scm (ghc-yesod-pesistent): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
rsiddharth 2018-03-21 03:45:11 +00:00 committed by Ludovic Courtès
parent fb812d6cff
commit d199274194
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 33 additions and 0 deletions

View File

@ -1058,3 +1058,36 @@ avoid any issues with characters.")
Yesod, on which other packages can be built. It provides dispatch, handler Yesod, on which other packages can be built. It provides dispatch, handler
functions, widgets, etc.") functions, widgets, etc.")
(license license:expat))) (license license:expat)))
(define-public ghc-yesod-persistent
(package
(name "ghc-yesod-persistent")
(version "1.4.3")
(source
(origin
(method url-fetch)
(uri (string-append "https://hackage.haskell.org/package/"
"yesod-persistent-" version "/"
"yesod-persistent-" version ".tar.gz"))
(sha256
(base32
"0kiksw46c8ww9yiwl28pkrppx8d6fhsasr0hvmsliqbrp16likj8"))))
(build-system haskell-build-system)
(arguments `(#:tests? #f)) ; FIXME: hspec-discover not available in PATH.
(inputs `(("ghc-yesod-core" ,ghc-yesod-core)
("ghc-persistent" ,ghc-persistent)
("ghc-persistent-template" ,ghc-persistent-template)
("ghc-blaze-builder" ,ghc-blaze-builder)
("ghc-conduit" ,ghc-conduit)
("ghc-resourcet" ,ghc-resourcet)
("ghc-resource-pool" ,ghc-resource-pool)))
(native-inputs `(("ghc-hspec" ,ghc-hspec)
("ghc-wai-extra" ,ghc-wai-extra)
("ghc-yesod-core" ,ghc-yesod-core)
("ghc-persistent-sqlite" ,ghc-persistent-sqlite)
("ghc-text" ,ghc-text)))
(home-page "http://www.yesodweb.com/")
(synopsis "Helpers for using Persistent from Yesod")
(description "This Haskell package provides helpers for using Persistent
from Yesod.")
(license license:expat)))