me
/
guix
Archived
1
0
Fork 0

gnu: Add ocaml-core-kernel.

* gnu/packages/ocaml.scm (ocaml-core-kernel): New variable.
(ocaml4.07-core-kernel): Inherit from it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
Julien Lepiller 2022-04-08 15:23:02 +02:00 committed by Ludovic Courtès
parent 6cf981afcd
commit e2a2c166a1
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 77 additions and 41 deletions

View File

@ -6887,58 +6887,94 @@ standard library that was developed by Jane Street.")
;; by OCaml's license for consortium members (see THIRD-PARTY.txt). ;; by OCaml's license for consortium members (see THIRD-PARTY.txt).
(license license:asl2.0))) (license license:asl2.0)))
(define-public ocaml4.07-core-kernel (define-public ocaml-core-kernel
(package (package
(name "ocaml4.07-core-kernel") (name "ocaml-core-kernel")
(version "0.11.1") (version "0.14.2")
(source (origin (source
(origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/janestreet/core_kernel") (url "https://github.com/janestreet/core_kernel")
(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 "1vxv9rq6m52n60gprm4sqjj1i1p4dd4sgns068hkp9g558d8zdjx"))))
"1dg7ygy7i64c5gaakb1cp1b26p9ks81vbxmb8fd7jff2q60j2z2g"))))
(build-system dune-build-system) (build-system dune-build-system)
(arguments (arguments
;; Cyclic dependency with ocaml-core ;; Cyclic dependency with ocaml-core
`(#:tests? #f `(#:tests? #f))
#:ocaml ,ocaml-4.07
#:findlib ,ocaml4.07-findlib
#:dune ,ocaml4.07-dune))
(propagated-inputs (propagated-inputs
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base)) (list ocaml-base
("ocaml-bin-prot" ,ocaml4.07-bin-prot) ocaml-base-bigstring
("ocaml-configurator" ,ocaml4.07-configurator) ocaml-base-quickcheck
("ocaml-fieldslib" ,(package-with-ocaml4.07 ocaml-fieldslib)) ocaml-bin-prot
("ocaml-jane-street-headers" ,ocaml4.07-jane-street-headers) ocaml-fieldslib
("ocaml-ppx-assert" ,(package-with-ocaml4.07 ocaml-ppx-assert)) ocaml-jane-street-headers
("ocaml-ppx-base" ,(package-with-ocaml4.07 ocaml-ppx-base)) ocaml-jst-config
("ocaml-ppx-hash" ,(package-with-ocaml4.07 ocaml-ppx-hash)) ocaml-ppx-assert
("ocaml-ppx-inline-test" ,(package-with-ocaml4.07 ocaml-ppx-inline-test)) ocaml-ppx-base
("ocaml-ppx-jane" ,ocaml4.07-ppx-jane) ocaml-ppx-hash
("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv)) ocaml-ppx-inline-test
("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message) ocaml-ppx-jane
("ocaml-sexplib" ,(package-with-ocaml4.07 ocaml-sexplib)) ocaml-ppx-sexp-conv
("ocaml-splittable-random" ,ocaml4.07-splittable-random) ocaml-ppx-sexp-message
("ocaml-stdio" ,(package-with-ocaml4.07 ocaml-stdio)) ocaml-sexplib
("ocaml-typerep" ,ocaml4.07-typerep) ocaml-splittable-random
("ocaml-variantslib" ,(package-with-ocaml4.07 ocaml-variantslib)) ocaml-stdio
("ocaml-migrate-parsetree" ocaml-time-now
,(package-with-ocaml4.07 ocaml-migrate-parsetree)))) ocaml-typerep
(properties `((upstream-name . "core_kernel"))) ocaml-variantslib
ocaml-ppx-optcomp))
(properties `((upstream-name . "core_kernel")
(ocaml4.07-variant . ,(delay ocaml4.07-core-kernel))))
(home-page "https://github.com/janestreet/core_kernel") (home-page "https://github.com/janestreet/core_kernel")
(synopsis "Portable standard library for OCaml") (synopsis "Portable standard library for OCaml")
(description "Core is an alternative to the OCaml standard library. (description "Core is an alternative to the OCaml standard library.
Core_kernel is the system-independent part of Core. It is aimed for cases when Core_kernel is the system-independent part of Core. It is aimed for cases when
the full Core is not available, such as in Javascript.") the full Core is not available, such as in Javascript.")
(license license:expat)))
(define-public ocaml4.07-core-kernel
(package-with-ocaml4.07
(package
(inherit ocaml-core-kernel)
(version "0.11.1")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/janestreet/core_kernel")
(commit (string-append "v" version))))
(file-name (git-file-name "ocaml4.07-core-kernel" version))
(sha256
(base32
"1dg7ygy7i64c5gaakb1cp1b26p9ks81vbxmb8fd7jff2q60j2z2g"))))
(propagated-inputs
(list ocaml-base
ocaml-bin-prot
ocaml4.07-configurator
ocaml-fieldslib
ocaml-jane-street-headers
ocaml-ppx-assert
ocaml-ppx-base
ocaml-ppx-hash
ocaml-ppx-inline-test
ocaml-ppx-jane
ocaml-ppx-sexp-conv
ocaml-ppx-sexp-message
ocaml-sexplib
ocaml-splittable-random
ocaml-stdio
ocaml-typerep
ocaml-variantslib
ocaml-migrate-parsetree))
(properties '())
(license (list (license (list
;; this package and parts of OCaml, relicensed by janestreet ;; this package and parts of OCaml, relicensed by janestreet
license:asl2.0 license:asl2.0
;; MLton and sjs ;; MLton and sjs
license:expat)))) license:expat)))))
(define-public ocaml-markup (define-public ocaml-markup
(package (package