mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-01 00:52:55 -05:00
gnu: Add ocaml-ppx-optcomp
* gnu/packages/ocaml.scm (ocaml-ppx-optcomp): New variable. (ocaml4.07-ppx-optcomp): Inherit from ocaml-ppx-optcomp. Signed-off-by: Julien Lepiller <julien@lepiller.eu>
This commit is contained in:
parent
a6bd051c04
commit
90db0c0f17
1 changed files with 32 additions and 22 deletions
|
@ -5582,35 +5582,45 @@ (define-public ocaml4.07-ppx-optional
|
||||||
else expression.")
|
else expression.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
(define-public ocaml4.07-ppx-optcomp
|
(define-public ocaml-ppx-optcomp
|
||||||
(package
|
(package
|
||||||
(name "ocaml4.07-ppx-optcomp")
|
(name "ocaml-ppx-optcomp")
|
||||||
(version "0.11.0")
|
(version "0.14.1")
|
||||||
(source (origin
|
(home-page "https://github.com/janestreet/ppx_optcomp")
|
||||||
(method url-fetch)
|
(source
|
||||||
(uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
|
(origin
|
||||||
(version-major+minor version)
|
(method git-fetch)
|
||||||
"/files/ppx_optcomp-v" version ".tar.gz"))
|
(uri (git-reference
|
||||||
|
(url home-page)
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1bb52p2j2h4s9f06vrcpla80rj93jinnzq6jzilapyx9q068929i"))))
|
"0j5smqa0hig1yn8wfrb4mv0y59kkwsalmqkm5asbd7kcc6589ap4"))))
|
||||||
(build-system dune-build-system)
|
(build-system dune-build-system)
|
||||||
(arguments
|
|
||||||
`(#:ocaml ,ocaml-4.07
|
|
||||||
#:findlib ,ocaml4.07-findlib
|
|
||||||
#:dune ,ocaml4.07-dune))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
|
`(("ocaml-base" ,ocaml-base)
|
||||||
("ocaml-stdio" ,(package-with-ocaml4.07 ocaml-stdio))
|
("ocaml-stdio" ,ocaml-stdio)
|
||||||
("ocaml-ppxlib" ,(package-with-ocaml4.07 ocaml-ppxlib))))
|
("ocaml-ppxlib" ,ocaml-ppxlib)))
|
||||||
(properties `((upstream-name . "ppx_optcomp")))
|
(properties `((upstream-name . "ppx_optcomp")
|
||||||
(home-page "https://github.com/janestreet/ppx_optcomp")
|
(ocaml4.07-variant . ,(delay ocaml4.07-ppx-optcomp))))
|
||||||
(synopsis "Optional compilation for OCaml")
|
(synopsis "Optional compilation for OCaml")
|
||||||
(description "Ppx_optcomp stands for Optional Compilation. It is a tool
|
(description "Ppx_optcomp stands for Optional Compilation. It is a tool
|
||||||
used to handle optional compilations of pieces of code depending of the word
|
used to handle optional compilations of pieces of code depending of the word
|
||||||
size, the version of the compiler, ...")
|
size, the version of the compiler, ...")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define-public ocaml4.07-ppx-optcomp
|
||||||
|
(package-with-ocaml4.07
|
||||||
|
(package
|
||||||
|
(inherit ocaml-ppx-optcomp)
|
||||||
|
(version "0.11.0")
|
||||||
|
(source
|
||||||
|
(janestreet-origin
|
||||||
|
"ppx_optcomp" version
|
||||||
|
"1bb52p2j2h4s9f06vrcpla80rj93jinnzq6jzilapyx9q068929i"))
|
||||||
|
(properties `((upstream-name . "ppx_optcomp"))))))
|
||||||
|
|
||||||
(define-public ocaml-ppx-let
|
(define-public ocaml-ppx-let
|
||||||
(package
|
(package
|
||||||
(name "ocaml-ppx-let")
|
(name "ocaml-ppx-let")
|
||||||
|
@ -5956,7 +5966,7 @@ (define-public ocaml4.07-ppx-jane
|
||||||
("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))
|
||||||
("ocaml-ppx-optcomp" ,ocaml4.07-ppx-optcomp)
|
("ocaml-ppx-optcomp" ,(package-with-ocaml4.07 ocaml-ppx-optcomp))
|
||||||
("ocaml-ppx-optional" ,ocaml4.07-ppx-optional)
|
("ocaml-ppx-optional" ,ocaml4.07-ppx-optional)
|
||||||
("ocaml-ppx-pipebang" ,ocaml4.07-ppx-pipebang)
|
("ocaml-ppx-pipebang" ,ocaml4.07-ppx-pipebang)
|
||||||
("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message)
|
("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message)
|
||||||
|
|
Loading…
Reference in a new issue