gnu: ghc-esqueleto: Update to commit b81e0d9.
* gnu/packages/haskell.scm (ghc-esqueleto): Update to commit b81e0d9. [source]: Use git-fetch. [arguments]: Disable Haddock and add phase to remove MySQL and PostgreSQL test-suites. [inputs]: Add ghc-unliftio. [native-inputs]: Remove ghc-hunit, ghc-monad-control, and ghc-quickcheck.
This commit is contained in:
parent
99daa29488
commit
3b72e7e2d4
|
@ -8555,18 +8555,47 @@ JSON (JavaScript Object Notation) is a lightweight data-interchange format.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public ghc-esqueleto
|
(define-public ghc-esqueleto
|
||||||
|
(let ((version "2.5.3")
|
||||||
|
(revision "1")
|
||||||
|
(commit "b81e0d951e510ebffca03c5a58658ad884cc6fbd"))
|
||||||
(package
|
(package
|
||||||
(name "ghc-esqueleto")
|
(name "ghc-esqueleto")
|
||||||
(version "2.5.3")
|
(version (git-version version revision commit))
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append "https://hackage.haskell.org/package/"
|
(uri (git-reference
|
||||||
"esqueleto/esqueleto-" version ".tar.gz"))
|
(url "https://github.com/bitemyapp/esqueleto")
|
||||||
|
(commit commit)))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"10n49rzqmblky7pwjnysalyy6nacmxfms8dqbsdv6hlyzr8pb69x"))))
|
"0lz1qxms7cfg5p3j37inlych0r2fwhm8xbarcys3df9m7jy9nixa"))))
|
||||||
(build-system haskell-build-system)
|
(build-system haskell-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:haddock? #f ; Haddock reports an internal error.
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
;; This package normally runs tests for the MySQL, PostgreSQL, and
|
||||||
|
;; SQLite backends. Since we only have Haskell packages for
|
||||||
|
;; SQLite, we remove the other two test suites. FIXME: Add the
|
||||||
|
;; other backends and run all three test suites.
|
||||||
|
(add-before 'configure 'remove-non-sqlite-test-suites
|
||||||
|
(lambda _
|
||||||
|
(use-modules (ice-9 rdelim))
|
||||||
|
(with-atomic-file-replacement "esqueleto.cabal"
|
||||||
|
(lambda (in out)
|
||||||
|
(let loop ((line (read-line in 'concat)) (deleting? #f))
|
||||||
|
(cond
|
||||||
|
((eof-object? line) #t)
|
||||||
|
((string-every char-set:whitespace line)
|
||||||
|
(unless deleting? (display line out))
|
||||||
|
(loop (read-line in 'concat) #f))
|
||||||
|
((member line '("test-suite mysql\n"
|
||||||
|
"test-suite postgresql\n"))
|
||||||
|
(loop (read-line in 'concat) #t))
|
||||||
|
(else
|
||||||
|
(unless deleting? (display line out))
|
||||||
|
(loop (read-line in 'concat) deleting?)))))))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("ghc-blaze-html" ,ghc-blaze-html)
|
`(("ghc-blaze-html" ,ghc-blaze-html)
|
||||||
("ghc-conduit" ,ghc-conduit)
|
("ghc-conduit" ,ghc-conduit)
|
||||||
|
@ -8575,14 +8604,12 @@ JSON (JavaScript Object Notation) is a lightweight data-interchange format.")
|
||||||
("ghc-resourcet" ,ghc-resourcet)
|
("ghc-resourcet" ,ghc-resourcet)
|
||||||
("ghc-tagged" ,ghc-tagged)
|
("ghc-tagged" ,ghc-tagged)
|
||||||
("ghc-text" ,ghc-text)
|
("ghc-text" ,ghc-text)
|
||||||
|
("ghc-unliftio" ,ghc-unliftio)
|
||||||
("ghc-unordered-containers" ,ghc-unordered-containers)))
|
("ghc-unordered-containers" ,ghc-unordered-containers)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("ghc-hspec" ,ghc-hspec)
|
`(("ghc-hspec" ,ghc-hspec)
|
||||||
("ghc-hunit" ,ghc-hunit)
|
|
||||||
("ghc-monad-control" ,ghc-monad-control)
|
|
||||||
("ghc-persistent-sqlite" ,ghc-persistent-sqlite)
|
("ghc-persistent-sqlite" ,ghc-persistent-sqlite)
|
||||||
("ghc-persistent-template" ,ghc-persistent-template)
|
("ghc-persistent-template" ,ghc-persistent-template)))
|
||||||
("ghc-quickcheck" ,ghc-quickcheck)))
|
|
||||||
(home-page "https://github.com/bitemyapp/esqueleto")
|
(home-page "https://github.com/bitemyapp/esqueleto")
|
||||||
(synopsis "Type-safe embedded domain specific language for SQL queries")
|
(synopsis "Type-safe embedded domain specific language for SQL queries")
|
||||||
(description "This library provides a type-safe embedded domain specific
|
(description "This library provides a type-safe embedded domain specific
|
||||||
|
@ -8590,7 +8617,7 @@ language (EDSL) for SQL queries that works with SQL backends as provided by
|
||||||
@code{ghc-persistent}. Its language closely resembles SQL, so you don't have
|
@code{ghc-persistent}. Its language closely resembles SQL, so you don't have
|
||||||
to learn new concepts, just new syntax, and it's fairly easy to predict the
|
to learn new concepts, just new syntax, and it's fairly easy to predict the
|
||||||
generated SQL and optimize it for your backend.")
|
generated SQL and optimize it for your backend.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3))))
|
||||||
|
|
||||||
(define-public shellcheck
|
(define-public shellcheck
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in New Issue