mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 07:12:30 -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.")
|
||||
(license license:asl2.0)))
|
||||
|
||||
(define-public ocaml4.07-ppx-optcomp
|
||||
(define-public ocaml-ppx-optcomp
|
||||
(package
|
||||
(name "ocaml4.07-ppx-optcomp")
|
||||
(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_optcomp-v" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"1bb52p2j2h4s9f06vrcpla80rj93jinnzq6jzilapyx9q068929i"))))
|
||||
(build-system dune-build-system)
|
||||
(arguments
|
||||
`(#:ocaml ,ocaml-4.07
|
||||
#:findlib ,ocaml4.07-findlib
|
||||
#:dune ,ocaml4.07-dune))
|
||||
(propagated-inputs
|
||||
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
|
||||
("ocaml-stdio" ,(package-with-ocaml4.07 ocaml-stdio))
|
||||
("ocaml-ppxlib" ,(package-with-ocaml4.07 ocaml-ppxlib))))
|
||||
(properties `((upstream-name . "ppx_optcomp")))
|
||||
(name "ocaml-ppx-optcomp")
|
||||
(version "0.14.1")
|
||||
(home-page "https://github.com/janestreet/ppx_optcomp")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url home-page)
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"0j5smqa0hig1yn8wfrb4mv0y59kkwsalmqkm5asbd7kcc6589ap4"))))
|
||||
(build-system dune-build-system)
|
||||
(propagated-inputs
|
||||
`(("ocaml-base" ,ocaml-base)
|
||||
("ocaml-stdio" ,ocaml-stdio)
|
||||
("ocaml-ppxlib" ,ocaml-ppxlib)))
|
||||
(properties `((upstream-name . "ppx_optcomp")
|
||||
(ocaml4.07-variant . ,(delay ocaml4.07-ppx-optcomp))))
|
||||
(synopsis "Optional compilation for OCaml")
|
||||
(description "Ppx_optcomp stands for Optional Compilation. It is a tool
|
||||
used to handle optional compilations of pieces of code depending of the word
|
||||
size, the version of the compiler, ...")
|
||||
(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
|
||||
(package
|
||||
(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-inline-test" ,ocaml4.07-ppx-inline-test)
|
||||
("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-pipebang" ,ocaml4.07-ppx-pipebang)
|
||||
("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message)
|
||||
|
|
Loading…
Reference in a new issue