me
/
guix
Archived
1
0
Fork 0

gnu: Add ocaml-variantslib.

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

Signed-off-by: Julien Lepiller <julien@lepiller.eu>
master
pukkamustard 2021-06-01 20:23:21 +00:00 committed by Julien Lepiller
parent 61c7467745
commit 9891f88f7d
No known key found for this signature in database
GPG Key ID: 53D457B2D636EE82
1 changed files with 30 additions and 22 deletions

View File

@ -5149,9 +5149,34 @@ of a record and create new record values.")
"12948pzxrl360lybm9fzyvplgcl87zjbn4m3sk1aw75zk85p1388"))
(properties `((upstream-name . "fieldslib"))))))
(define-public ocaml4.07-variantslib
(define-public ocaml-variantslib
(package
(name "ocaml4.07-variantslib")
(name "ocaml-variantslib")
(version "0.14.0")
(source
(janestreet-origin "variantslib" version
"11zp27gh282dx9ifbhcp6i7fkc97fvk8amaj58mf1g1hwklc0lm3"))
(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")
(ocaml4.07-variant . ,(delay ocaml4.07-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)))
(define-public ocaml4.07-variantslib
(package-with-ocaml4.07
(package
(inherit ocaml-variantslib)
(name "ocaml-variantslib")
(version "0.11.0")
(source (origin
(method url-fetch)
@ -5161,24 +5186,7 @@ of a record and create new record values.")
(sha256
(base32
"1hsdwmkslvk4cznqr4lyyiy7vvk5spil226k0z2in26fxq6y0hf3"))))
(build-system dune-build-system)
(arguments
;; No tests
`(#:tests? #f
#:ocaml ,ocaml-4.07
#:findlib ,ocaml4.07-findlib
#:dune ,ocaml4.07-dune))
(propagated-inputs
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
("ocaml-migrate-parsetree"
,(package-with-ocaml4.07 ocaml-migrate-parsetree))
("ocaml-ppxlib" ,(package-with-ocaml4.07 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)))
(properties `((upstream-name . "variantslib"))))))
(define-public ocaml-ppx-fields-conv
(package
@ -5280,7 +5288,7 @@ definitions.")
(build-system dune-build-system)
(propagated-inputs
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
("ocaml-variantslib" ,ocaml4.07-variantslib)
("ocaml-variantslib" ,(package-with-ocaml4.07 ocaml-variantslib))
("ocaml-migrate-parsetree"
,(package-with-ocaml4.07 ocaml-migrate-parsetree))
("ocaml-ppxlib" ,(package-with-ocaml4.07 ocaml-ppxlib))))
@ -6324,7 +6332,7 @@ standard library that was developed by Jane Street.")
("ocaml-splittable-random" ,ocaml4.07-splittable-random)
("ocaml-stdio" ,(package-with-ocaml4.07 ocaml-stdio))
("ocaml-typerep" ,ocaml4.07-typerep)
("ocaml-variantslib" ,ocaml4.07-variantslib)
("ocaml-variantslib" ,(package-with-ocaml4.07 ocaml-variantslib))
("ocaml-migrate-parsetree"
,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
(properties `((upstream-name . "core_kernel")))