mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 23:32:24 -05:00
gnu: Add ocaml-ppx-fields-conv.
* gnu/packages/ocaml.scm (ocaml-ppx-fields-conv): New variable. (ocaml4.07-ppx-fields-conv): Inherit from ocaml-ppx-fields-conv. Signed-off-by: Julien Lepiller <julien@lepiller.eu>
This commit is contained in:
parent
8a6c39c272
commit
a6bd051c04
1 changed files with 33 additions and 25 deletions
|
@ -5062,31 +5062,29 @@ (define-public ocaml4.07-variantslib
|
||||||
standard library.")
|
standard library.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
(define-public ocaml4.07-ppx-fields-conv
|
(define-public ocaml-ppx-fields-conv
|
||||||
(package
|
(package
|
||||||
(name "ocaml4.07-ppx-fields-conv")
|
(name "ocaml-ppx-fields-conv")
|
||||||
(version "0.11.0")
|
(version "0.14.2")
|
||||||
(source (origin
|
(home-page "https://github.com/janestreet/ppx_fields_conv")
|
||||||
(method url-fetch)
|
(source
|
||||||
(uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
|
(origin
|
||||||
(version-major+minor version)
|
(method git-fetch)
|
||||||
"/files/ppx_fields_conv-v" version ".tar.gz"))
|
(uri (git-reference
|
||||||
(sha256
|
(url home-page)
|
||||||
(base32
|
(commit (string-append "v" version))))
|
||||||
"07zrd3qky2ppbfl55gpm90rvqa5860xgwcsvihrjmkrw6d0jirkc"))))
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1zwirwqry24b48bg7d4yc845hvcirxyymzbw95aaxdcck84d30n8"))))
|
||||||
(build-system dune-build-system)
|
(build-system dune-build-system)
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
|
`(("ocaml-base" ,ocaml-base)
|
||||||
("ocaml-fieldslib" ,(package-with-ocaml4.07 ocaml-fieldslib))
|
("ocaml-fieldslib" ,ocaml-fieldslib)
|
||||||
("ocaml-migrate-parsetree"
|
("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
|
||||||
,(package-with-ocaml4.07 ocaml-migrate-parsetree))
|
("ocaml-ppxlib" ,ocaml-ppxlib)))
|
||||||
("ocaml-ppxlib" ,(package-with-ocaml4.07 ocaml-ppxlib))))
|
(properties `((upstream-name . "ppx_fields_conv")
|
||||||
(arguments
|
(ocaml4.07-variant . ,(delay ocaml4.07-ppx-fields-conv))))
|
||||||
`(#:ocaml ,ocaml-4.07
|
|
||||||
#:findlib ,ocaml4.07-findlib
|
|
||||||
#:dune ,ocaml4.07-dune))
|
|
||||||
(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")
|
(synopsis "Generation of accessor and iteration functions for ocaml records")
|
||||||
(description "Ppx_fields_conv is a ppx rewriter that can be used to define
|
(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
|
first class values representing record fields, and additional routines, to get
|
||||||
|
@ -5094,6 +5092,16 @@ (define-public ocaml4.07-ppx-fields-conv
|
||||||
new record values.")
|
new record values.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define-public ocaml4.07-ppx-fields-conv
|
||||||
|
(package-with-ocaml4.07
|
||||||
|
(package
|
||||||
|
(inherit ocaml-ppx-fields-conv)
|
||||||
|
(version "0.11.0")
|
||||||
|
(source (janestreet-origin
|
||||||
|
"ppx_fields_conv" version
|
||||||
|
"07zrd3qky2ppbfl55gpm90rvqa5860xgwcsvihrjmkrw6d0jirkc"))
|
||||||
|
(properties `((upstream-name . "ppx_fields_conv"))))))
|
||||||
|
|
||||||
(define-public ocaml-ppx-sexp-conv
|
(define-public ocaml-ppx-sexp-conv
|
||||||
(package
|
(package
|
||||||
(name "ocaml-ppx-sexp-conv")
|
(name "ocaml-ppx-sexp-conv")
|
||||||
|
@ -5228,7 +5236,7 @@ (define-public ocaml4.07-bin-prot
|
||||||
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
|
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
|
||||||
("ocaml-ppx-compare" ,(package-with-ocaml4.07 ocaml-ppx-compare))
|
("ocaml-ppx-compare" ,(package-with-ocaml4.07 ocaml-ppx-compare))
|
||||||
("ocaml-ppx-custom-printf" ,(package-with-ocaml4.07 ocaml-ppx-custom-printf))
|
("ocaml-ppx-custom-printf" ,(package-with-ocaml4.07 ocaml-ppx-custom-printf))
|
||||||
("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
|
("ocaml-ppx-fields-conv" ,(package-with-ocaml4.07 ocaml-ppx-fields-conv))
|
||||||
("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
|
("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
|
||||||
("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
|
("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
|
||||||
("ocaml-migrate-parsetree"
|
("ocaml-migrate-parsetree"
|
||||||
|
@ -5750,7 +5758,7 @@ (define-public ocaml4.07-ppx-expect
|
||||||
("ocaml-ppx-assert" ,(package-with-ocaml4.07 ocaml4.07-ppx-assert))
|
("ocaml-ppx-assert" ,(package-with-ocaml4.07 ocaml4.07-ppx-assert))
|
||||||
("ocaml-ppx-compare" ,(package-with-ocaml4.07 ocaml-ppx-compare))
|
("ocaml-ppx-compare" ,(package-with-ocaml4.07 ocaml-ppx-compare))
|
||||||
("ocaml-ppx-custom-printf" ,(package-with-ocaml4.07 ocaml-ppx-custom-printf))
|
("ocaml-ppx-custom-printf" ,(package-with-ocaml4.07 ocaml-ppx-custom-printf))
|
||||||
("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
|
("ocaml-ppx-fields-conv" ,(package-with-ocaml4.07 ocaml-ppx-fields-conv))
|
||||||
("ocaml-ppx-here" ,(package-with-ocaml4.07 ocaml-ppx-here))
|
("ocaml-ppx-here" ,(package-with-ocaml4.07 ocaml-ppx-here))
|
||||||
("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
|
("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
|
||||||
("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
|
("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
|
||||||
|
@ -5944,7 +5952,7 @@ (define-public ocaml4.07-ppx-jane
|
||||||
("ocaml-ppx-custom-printf" ,(package-with-ocaml4.07 ocaml-ppx-custom-printf))
|
("ocaml-ppx-custom-printf" ,(package-with-ocaml4.07 ocaml-ppx-custom-printf))
|
||||||
("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)
|
("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)
|
||||||
("ocaml-ppx-fail" ,ocaml4.07-ppx-fail)
|
("ocaml-ppx-fail" ,ocaml4.07-ppx-fail)
|
||||||
("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
|
("ocaml-ppx-fields-conv" ,(package-with-ocaml4.07 ocaml-ppx-fields-conv))
|
||||||
("ocaml-ppx-here" ,(package-with-ocaml4.07 ocaml-ppx-here))
|
("ocaml-ppx-here" ,(package-with-ocaml4.07 ocaml-ppx-here))
|
||||||
("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
|
("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
|
||||||
("ocaml-ppx-let" ,(package-with-ocaml4.07 ocaml-ppx-let))
|
("ocaml-ppx-let" ,(package-with-ocaml4.07 ocaml-ppx-let))
|
||||||
|
|
Loading…
Reference in a new issue