mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ghc-esqueleto: Update to 3.0.0.
* gnu/packages/haskell-xyz.scm (ghc-esqueleto): Update to 3.0.0. [source]: Use 'url-fetch' instead of 'git-fetch'.
This commit is contained in:
parent
801fbd7e0f
commit
2648b604ac
1 changed files with 54 additions and 59 deletions
|
@ -3209,69 +3209,64 @@ directly uses the type system, rather than out-of-band exceptions.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public ghc-esqueleto
|
(define-public ghc-esqueleto
|
||||||
(let ((version "2.5.3")
|
(package
|
||||||
(revision "1")
|
(name "ghc-esqueleto")
|
||||||
(commit "b81e0d951e510ebffca03c5a58658ad884cc6fbd"))
|
(version "3.0.0")
|
||||||
(package
|
(source
|
||||||
(name "ghc-esqueleto")
|
(origin
|
||||||
(version (git-version version revision commit))
|
(method url-fetch)
|
||||||
(source
|
(uri (string-append "https://hackage.haskell.org/package/"
|
||||||
(origin
|
"esqueleto/esqueleto-" version ".tar.gz"))
|
||||||
(method git-fetch)
|
(sha256
|
||||||
(uri (git-reference
|
(base32
|
||||||
(url "https://github.com/bitemyapp/esqueleto")
|
"187c098h2xyf2nhifkdy2bqfl6iap7a93mzwd2kirl5yyicpc9zy"))))
|
||||||
(commit commit)))
|
(build-system haskell-build-system)
|
||||||
(file-name (git-file-name name version))
|
(arguments
|
||||||
(sha256
|
`(#:haddock? #f ; Haddock reports an internal error.
|
||||||
(base32
|
#:phases
|
||||||
"0lz1qxms7cfg5p3j37inlych0r2fwhm8xbarcys3df9m7jy9nixa"))))
|
(modify-phases %standard-phases
|
||||||
(build-system haskell-build-system)
|
;; This package normally runs tests for the MySQL, PostgreSQL, and
|
||||||
(arguments
|
;; SQLite backends. Since we only have Haskell packages for
|
||||||
`(#:haddock? #f ; Haddock reports an internal error.
|
;; SQLite, we remove the other two test suites. FIXME: Add the
|
||||||
#:phases
|
;; other backends and run all three test suites.
|
||||||
(modify-phases %standard-phases
|
(add-before 'configure 'remove-non-sqlite-test-suites
|
||||||
;; This package normally runs tests for the MySQL, PostgreSQL, and
|
(lambda _
|
||||||
;; SQLite backends. Since we only have Haskell packages for
|
(use-modules (ice-9 rdelim))
|
||||||
;; SQLite, we remove the other two test suites. FIXME: Add the
|
(with-atomic-file-replacement "esqueleto.cabal"
|
||||||
;; other backends and run all three test suites.
|
(lambda (in out)
|
||||||
(add-before 'configure 'remove-non-sqlite-test-suites
|
(let loop ((line (read-line in 'concat)) (deleting? #f))
|
||||||
(lambda _
|
(cond
|
||||||
(use-modules (ice-9 rdelim))
|
((eof-object? line) #t)
|
||||||
(with-atomic-file-replacement "esqueleto.cabal"
|
((string-every char-set:whitespace line)
|
||||||
(lambda (in out)
|
(unless deleting? (display line out))
|
||||||
(let loop ((line (read-line in 'concat)) (deleting? #f))
|
(loop (read-line in 'concat) #f))
|
||||||
(cond
|
((member line '("test-suite mysql\n"
|
||||||
((eof-object? line) #t)
|
"test-suite postgresql\n"))
|
||||||
((string-every char-set:whitespace line)
|
(loop (read-line in 'concat) #t))
|
||||||
(unless deleting? (display line out))
|
(else
|
||||||
(loop (read-line in 'concat) #f))
|
(unless deleting? (display line out))
|
||||||
((member line '("test-suite mysql\n"
|
(loop (read-line in 'concat) deleting?)))))))))))
|
||||||
"test-suite postgresql\n"))
|
(inputs
|
||||||
(loop (read-line in 'concat) #t))
|
`(("ghc-blaze-html" ,ghc-blaze-html)
|
||||||
(else
|
("ghc-conduit" ,ghc-conduit)
|
||||||
(unless deleting? (display line out))
|
("ghc-monad-logger" ,ghc-monad-logger)
|
||||||
(loop (read-line in 'concat) deleting?)))))))))))
|
("ghc-persistent" ,ghc-persistent)
|
||||||
(inputs
|
("ghc-resourcet" ,ghc-resourcet)
|
||||||
`(("ghc-blaze-html" ,ghc-blaze-html)
|
("ghc-tagged" ,ghc-tagged)
|
||||||
("ghc-conduit" ,ghc-conduit)
|
("ghc-unliftio" ,ghc-unliftio)
|
||||||
("ghc-monad-logger" ,ghc-monad-logger)
|
("ghc-unordered-containers" ,ghc-unordered-containers)))
|
||||||
("ghc-persistent" ,ghc-persistent)
|
(native-inputs
|
||||||
("ghc-resourcet" ,ghc-resourcet)
|
`(("ghc-hspec" ,ghc-hspec)
|
||||||
("ghc-tagged" ,ghc-tagged)
|
("ghc-persistent-sqlite" ,ghc-persistent-sqlite)
|
||||||
("ghc-unliftio" ,ghc-unliftio)
|
("ghc-persistent-template" ,ghc-persistent-template)))
|
||||||
("ghc-unordered-containers" ,ghc-unordered-containers)))
|
(home-page "https://github.com/bitemyapp/esqueleto")
|
||||||
(native-inputs
|
(synopsis "Type-safe embedded domain specific language for SQL queries")
|
||||||
`(("ghc-hspec" ,ghc-hspec)
|
(description "This library provides a type-safe embedded domain specific
|
||||||
("ghc-persistent-sqlite" ,ghc-persistent-sqlite)
|
|
||||||
("ghc-persistent-template" ,ghc-persistent-template)))
|
|
||||||
(home-page "https://github.com/bitemyapp/esqueleto")
|
|
||||||
(synopsis "Type-safe embedded domain specific language for SQL queries")
|
|
||||||
(description "This library provides a type-safe embedded domain specific
|
|
||||||
language (EDSL) for SQL queries that works with SQL backends as provided by
|
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 ghc-exactprint
|
(define-public ghc-exactprint
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue