me
/
guix
Archived
1
0
Fork 0

gnu: Add ocaml-compiler-libs.

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

Signed-off-by: Julien Lepiller <julien@lepiller.eu>
master
pukkamustard 2021-06-01 20:22:52 +00:00 committed by Julien Lepiller
parent 8f5aa879de
commit cfa65d7770
No known key found for this signature in database
GPG Key ID: 53D457B2D636EE82
1 changed files with 29 additions and 13 deletions

View File

@ -4083,7 +4083,7 @@ syntax checking on dedukti files.")
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base)) `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
("ocaml-migrate-parsetree" ("ocaml-migrate-parsetree"
,(package-with-ocaml4.07 ocaml-migrate-parsetree)) ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
("ocaml-compiler-libs" ,ocaml4.07-compiler-libs) ("ocaml-compiler-libs" ,(package-with-ocaml4.07 ocaml-compiler-libs))
("ocaml-sexplib0" ,(package-with-ocaml4.07 ocaml-sexplib0)) ("ocaml-sexplib0" ,(package-with-ocaml4.07 ocaml-sexplib0))
("ocaml-stdio" ,(package-with-ocaml4.07 ocaml-stdio)) ("ocaml-stdio" ,(package-with-ocaml4.07 ocaml-stdio))
("ocaml-ppxlib" ,ocaml4.07-ppxlib))) ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
@ -4685,34 +4685,50 @@ provided by companion libraries such as
#:dune ,ocaml4.07-dune)) #:dune ,ocaml4.07-dune))
(properties '())))) (properties '()))))
(define-public ocaml4.07-compiler-libs (define-public ocaml-compiler-libs
(package (package
(name "ocaml4.07-compiler-libs") (name "ocaml-compiler-libs")
(version "0.11.0") (version "0.12.3")
(home-page "https://github.com/janestreet/ocaml-compiler-libs") (home-page "https://github.com/janestreet/ocaml-compiler-libs")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url (string-append home-page ".git")) (url home-page)
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"03jds7bszh8wwpfwxb3dg0gyr1j1872wxwx1xqhry5ir0i84bg0s")))) "00nrar7h2pyflbdiq6wwwrb4k5jh9iff0jllihzm6ms8d5pspsg5"))))
(build-system dune-build-system) (build-system dune-build-system)
(arguments (arguments `(#:tests? #f)) ;no tests
`(#:tests? #f ;no tests (properties `((upstream-name . "ocaml-compiler-libs")
#:ocaml ,ocaml-4.07 (ocaml4.07-variant . ,(delay ocaml4.07-compiler-libs))))
#:findlib ,ocaml4.07-findlib
#:dune ,ocaml4.07-dune))
(properties `((upstream-name . "ocaml-compiler-libs")))
(synopsis "Compiler libraries repackaged") (synopsis "Compiler libraries repackaged")
(description "This package simply repackages the OCaml compiler libraries (description "This package simply repackages the OCaml compiler libraries
so they don't expose everything at toplevel. For instance, @code{Ast_helper} so they don't expose everything at toplevel. For instance, @code{Ast_helper}
is now @code{Ocaml_common.Ast_helper}.") is now @code{Ocaml_common.Ast_helper}.")
(license license:expat))) (license license:expat)))
(define-public ocaml4.07-compiler-libs
(package-with-ocaml4.07
(package
(inherit ocaml-compiler-libs)
(name "ocaml-compiler-libs")
(version "0.11.0")
(home-page "https://github.com/janestreet/ocaml-compiler-libs")
(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
"03jds7bszh8wwpfwxb3dg0gyr1j1872wxwx1xqhry5ir0i84bg0s"))))
(properties `((upstream-name . "ocaml-compiler-libs"))))))
(define-public ocaml-stdio (define-public ocaml-stdio
(package (package
(name "ocaml-stdio") (name "ocaml-stdio")
@ -4789,7 +4805,7 @@ as part of the same ocaml-migrate-parsetree driver.")
(build-system dune-build-system) (build-system dune-build-system)
(propagated-inputs (propagated-inputs
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base)) `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
("ocaml-compiler-libs" ,ocaml4.07-compiler-libs) ("ocaml-compiler-libs" ,(package-with-ocaml4.07 ocaml-compiler-libs))
("ocaml-migrate-parsetree" ("ocaml-migrate-parsetree"
,(package-with-ocaml4.07 ocaml-migrate-parsetree)) ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
("ocaml-ppx-derivers" ,(package-with-ocaml4.07 ocaml-ppx-derivers)) ("ocaml-ppx-derivers" ,(package-with-ocaml4.07 ocaml-ppx-derivers))