mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: Add ocaml-ppx-fields-conv.
* gnu/packages/ocaml.scm (ocaml-ppx-fields-conv): New variable.
This commit is contained in:
parent
d9f8433e17
commit
7b685486ce
1 changed files with 27 additions and 0 deletions
|
@ -5248,3 +5248,30 @@ (define-public ocaml-variantslib
|
||||||
(description "The Core suite of libraries is an alternative to OCaml's
|
(description "The Core suite of libraries is an alternative to OCaml's
|
||||||
standard library.")
|
standard library.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define-public ocaml-ppx-fields-conv
|
||||||
|
(package
|
||||||
|
(name "ocaml-ppx-fields-conv")
|
||||||
|
(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_fields_conv-v" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"07zrd3qky2ppbfl55gpm90rvqa5860xgwcsvihrjmkrw6d0jirkc"))))
|
||||||
|
(build-system dune-build-system)
|
||||||
|
(propagated-inputs
|
||||||
|
`(("ocaml-base" ,ocaml-base)
|
||||||
|
("ocaml-fieldslib" ,ocaml-fieldslib)
|
||||||
|
("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
|
||||||
|
("ocaml-ppxlib" ,ocaml-ppxlib)))
|
||||||
|
(properties `((upstream-name . "ppx_fields_conv")))
|
||||||
|
(home-page "https://github.com/janestreet/ppx_fields_conv")
|
||||||
|
(synopsis "Generation of accessor and iteration functions for ocaml records")
|
||||||
|
(description "Ppx_fields_conv is a ppx rewriter that can be used to define
|
||||||
|
first class values representing record fields, and additional routines, to get
|
||||||
|
and set record fields, iterate and fold over all fields of a record and create
|
||||||
|
new record values.")
|
||||||
|
(license license:asl2.0)))
|
||||||
|
|
Loading…
Reference in a new issue