gnu: Add ocaml-ppx-fail.

* gnu/packages/ocaml.scm (ocaml-ppx-fail): New variable.
(ocaml4.07-ppx-fail): Inherit from it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Julien Lepiller 2022-04-08 15:22:59 +02:00 committed by Ludovic Courtès
parent 49a106f14e
commit e487d5666a
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -6139,35 +6139,46 @@ (define-public ocaml4.07-ppx-let
(properties `((upstream-name . "ppx_let")))))) (properties `((upstream-name . "ppx_let"))))))
(define-public ocaml4.07-ppx-fail (define-public ocaml-ppx-fail
(package (package
(name "ocaml4.07-ppx-fail") (name "ocaml-ppx-fail")
(version "0.11.0") (version "0.14.0")
(source (origin (source
(method url-fetch) (origin
(uri (string-append "https://ocaml.janestreet.com/ocaml-core/v" (method git-fetch)
(version-major+minor version) (uri (git-reference
"/files/ppx_fail-v" version ".tar.gz")) (url "https://github.com/janestreet/ppx_fail")
(sha256 (commit (string-append "v" version))))
(base32 (file-name (git-file-name name version))
"07plqsvljiwvngggfypwq55g46s5my55y45mvlmalrxyppzr03s8")))) (sha256
(base32 "012p9gv7w4sk3b4x0sdmqrmr2856w8xc424waxb6vrybid7qjs95"))))
(build-system dune-build-system) (build-system dune-build-system)
(arguments (propagated-inputs (list ocaml-base ocaml-ppx-here ocaml-ppxlib))
`(#:ocaml ,ocaml-4.07 (properties `((upstream-name . "ppx_fail")
#:findlib ,ocaml4.07-findlib (ocaml4.07-variant . ,(delay ocaml4.07-ppx-fail))))
#:dune ,ocaml4.07-dune))
(propagated-inputs
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
("ocaml-ppx-here" ,(package-with-ocaml4.07 ocaml-ppx-here))
("ocaml-migrate-parsetree"
,(package-with-ocaml4.07 ocaml-migrate-parsetree))
("ocaml-ppxlib" ,(package-with-ocaml4.07 ocaml-ppxlib))))
(properties `((upstream-name . "ppx_fail")))
(home-page "https://github.com/janestreet/ppx_fail") (home-page "https://github.com/janestreet/ppx_fail")
(synopsis "Add location to calls to failwiths") (synopsis "Add location to calls to failwiths")
(description "Syntax extension that makes [failwiths] always include a (description "Syntax extension that makes [failwiths] always include a
position.") position.")
(license license:asl2.0))) (license license:expat)))
(define-public ocaml4.07-ppx-fail
(package-with-ocaml4.07
(package
(inherit ocaml-ppx-fail)
(version "0.11.0")
(source (origin
(method url-fetch)
(uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
(version-major+minor version)
"/files/ppx_fail-v" version ".tar.gz"))
(sha256
(base32
"07plqsvljiwvngggfypwq55g46s5my55y45mvlmalrxyppzr03s8"))))
(propagated-inputs
(list ocaml-base ocaml-ppx-here ocaml-migrate-parsetree ocaml-ppxlib))
(properties '())
(license license:asl2.0))))
(define-public ocaml-ppx-cold (define-public ocaml-ppx-cold
(package (package