gnu: Add ocaml-variantslib.

* gnu/packages/ocaml.scm (ocaml-variantslib): New variable.
This commit is contained in:
Julien Lepiller 2019-02-01 16:50:21 +01:00
parent 143685fd1a
commit d9f8433e17
No known key found for this signature in database
GPG key ID: 43111F4520086A0C

View file

@ -5221,3 +5221,30 @@ (define-public ocaml-fieldslib
record fields, to get and set record fields, iterate and fold over all fields
of a record and create new record values.")
(license license:asl2.0)))
(define-public ocaml-variantslib
(package
(name "ocaml-variantslib")
(version "0.11.0")
(source (origin
(method url-fetch)
(uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
(version-major+minor version)
"/files/variantslib-v" version ".tar.gz"))
(sha256
(base32
"1hsdwmkslvk4cznqr4lyyiy7vvk5spil226k0z2in26fxq6y0hf3"))))
(build-system dune-build-system)
(arguments
;; No tests
`(#:tests? #f))
(propagated-inputs
`(("ocaml-base" ,ocaml-base)
("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
("ocaml-ppxlib" ,ocaml-ppxlib)))
(properties `((upstream-name . "variantslib")))
(home-page "https://github.com/janestreet/variantslib")
(synopsis "OCaml variants as first class values")
(description "The Core suite of libraries is an alternative to OCaml's
standard library.")
(license license:asl2.0)))