mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-10 05:31:21 +01:00
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>
This commit is contained in:
parent
6cf981afcd
commit
e2a2c166a1
1 changed files with 77 additions and 41 deletions
|
@ -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
|
||||||
(method git-fetch)
|
(origin
|
||||||
(uri (git-reference
|
(method git-fetch)
|
||||||
(url "https://github.com/janestreet/core_kernel")
|
(uri (git-reference
|
||||||
(commit (string-append "v" version))))
|
(url "https://github.com/janestreet/core_kernel")
|
||||||
(file-name (git-file-name name version))
|
(commit (string-append "v" version))))
|
||||||
(sha256
|
(file-name (git-file-name name version))
|
||||||
(base32
|
(sha256
|
||||||
"1dg7ygy7i64c5gaakb1cp1b26p9ks81vbxmb8fd7jff2q60j2z2g"))))
|
(base32 "1vxv9rq6m52n60gprm4sqjj1i1p4dd4sgns068hkp9g558d8zdjx"))))
|
||||||
(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 (list
|
(license license:expat)))
|
||||||
;; this package and parts of OCaml, relicensed by janestreet
|
|
||||||
license:asl2.0
|
(define-public ocaml4.07-core-kernel
|
||||||
;; MLton and sjs
|
(package-with-ocaml4.07
|
||||||
license:expat))))
|
(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
|
||||||
|
;; this package and parts of OCaml, relicensed by janestreet
|
||||||
|
license:asl2.0
|
||||||
|
;; MLton and sjs
|
||||||
|
license:expat)))))
|
||||||
|
|
||||||
(define-public ocaml-markup
|
(define-public ocaml-markup
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Reference in a new issue