mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-01 00:52:55 -05:00
gnu: Add ocaml-core.
* gnu/packages/ocaml.scm (ocaml-core): New variable. (ocaml4.07-core): Inherit from it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
16e02d2b0e
commit
24851bf6f9
1 changed files with 50 additions and 29 deletions
|
@ -6848,45 +6848,66 @@ (define-public ocaml4.07-spawn
|
||||||
(propagated-inputs '())
|
(propagated-inputs '())
|
||||||
(properties '()))))
|
(properties '()))))
|
||||||
|
|
||||||
(define-public ocaml4.07-core
|
(define-public ocaml-core
|
||||||
(package
|
(package
|
||||||
(name "ocaml4.07-core")
|
(name "ocaml-core")
|
||||||
(version "0.11.3")
|
(version "0.14.1")
|
||||||
(source (origin
|
(source
|
||||||
(method git-fetch)
|
(origin
|
||||||
(uri (git-reference
|
(method git-fetch)
|
||||||
(url "https://github.com/janestreet/core")
|
(uri (git-reference
|
||||||
(commit (string-append "v" version))))
|
(url "https://github.com/janestreet/core")
|
||||||
(file-name (git-file-name name version))
|
(commit (string-append "v" version))))
|
||||||
(sha256
|
(file-name (git-file-name name version))
|
||||||
(base32
|
(sha256
|
||||||
"0pzl8n09z4f3i7z2wq4cjxfqrr8mj6xcdp7rbg0nxap2zdhjgvrq"))))
|
(base32 "1isrcl07nkmdm6akqsqs9z8s6zvva2lvg47kaagy7gsbyszrqb82"))))
|
||||||
(build-system dune-build-system)
|
(build-system dune-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:package "core"
|
`(#:package "core"
|
||||||
#:tests? #f; Require a cyclic dependency: core_extended
|
#:tests? #f)); Require a cyclic dependency: core_extended
|
||||||
#: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-core-kernel
|
||||||
("ocaml-configurator" ,ocaml4.07-configurator)
|
ocaml-jst-config
|
||||||
("ocaml-core-kernel" ,ocaml4.07-core-kernel)
|
ocaml-ppx-jane
|
||||||
("ocaml-ppx-assert" ,(package-with-ocaml4.07 ocaml-ppx-assert))
|
ocaml-sexplib
|
||||||
("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
|
ocaml-timezone
|
||||||
("ocaml-sexplib" ,(package-with-ocaml4.07 ocaml-sexplib))
|
ocaml-spawn))
|
||||||
("ocaml-spawn" ,ocaml4.07-spawn)
|
|
||||||
("ocaml-stdio" ,(package-with-ocaml4.07 ocaml-stdio))
|
|
||||||
("ocaml-migrate-parsetree"
|
|
||||||
,(package-with-ocaml4.07 ocaml-migrate-parsetree))
|
|
||||||
("ocaml-ppxlib" ,(package-with-ocaml4.07 ocaml-ppxlib))))
|
|
||||||
(home-page "https://github.com/janestreet/core")
|
(home-page "https://github.com/janestreet/core")
|
||||||
(synopsis "Alternative to OCaml's standard library")
|
(synopsis "Alternative to OCaml's standard library")
|
||||||
(description "The Core suite of libraries is an alternative to OCaml's
|
(description "The Core suite of libraries is an alternative to OCaml's
|
||||||
standard library that was developed by Jane Street.")
|
standard library that was developed by Jane Street.")
|
||||||
;; Also contains parts of OCaml, relicensed to asl2.0, as permitted
|
;; Also contains parts of OCaml, relicensed to expat, as permitted
|
||||||
;; 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:expat)))
|
||||||
|
|
||||||
|
(define-public ocaml4.07-core
|
||||||
|
(package-with-ocaml4.07
|
||||||
|
(package
|
||||||
|
(inherit ocaml-core)
|
||||||
|
(version "0.11.3")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/janestreet/core")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name "ocaml4.07-core" version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0pzl8n09z4f3i7z2wq4cjxfqrr8mj6xcdp7rbg0nxap2zdhjgvrq"))))
|
||||||
|
(propagated-inputs
|
||||||
|
(list ocaml-base
|
||||||
|
ocaml4.07-configurator
|
||||||
|
ocaml-core-kernel
|
||||||
|
ocaml-ppx-assert
|
||||||
|
ocaml-ppx-jane
|
||||||
|
ocaml-sexplib
|
||||||
|
ocaml-spawn
|
||||||
|
ocaml-stdio
|
||||||
|
ocaml-migrate-parsetree
|
||||||
|
ocaml-ppxlib))
|
||||||
|
;; Also contains parts of OCaml, relicensed to asl2.0, as permitted
|
||||||
|
;; by OCaml's license for consortium members (see THIRD-PARTY.txt).
|
||||||
|
(license license:asl2.0))))
|
||||||
|
|
||||||
(define-public ocaml-core-kernel
|
(define-public ocaml-core-kernel
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in a new issue