me
/
guix
Archived
1
0
Fork 0

gnu: Add ocaml-spawn.

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

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
Julien Lepiller 2022-04-08 15:22:44 +02:00 committed by Ludovic Courtès
parent d59abc336d
commit 36e0e198fe
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 37 additions and 18 deletions

View File

@ -6446,10 +6446,10 @@ Configurator allows one to:
@end itemize") @end itemize")
(license license:asl2.0))) (license license:asl2.0)))
(define-public ocaml4.07-spawn (define-public ocaml-spawn
(package (package
(name "ocaml4.07-spawn") (name "ocaml-spawn")
(version "0.13.0") (version "0.15.0")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@ -6458,22 +6458,12 @@ Configurator allows one to:
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1w003k1kw1lmyiqlk58gkxx8rac7dchiqlz6ah7aj7bh49b36ppf")))) "1fjr91psas5zmk1hxvxh0dchhn0pkyzlr4gg232f5g9vdgissi0p"))))
(build-system dune-build-system) (build-system dune-build-system)
(arguments (propagated-inputs (list ocaml-odoc))
`(#:phases (native-inputs (list ocaml-ppx-expect))
(modify-phases %standard-phases (properties
(add-before 'check 'fix-tests `((ocaml4.07-variant . ,(delay ocaml4.07-spawn))))
(lambda _
(substitute* "test/tests.ml"
(("/bin/pwd") (which "pwd"))
(("/bin/echo") (which "echo")))
#t)))
#:ocaml ,ocaml-4.07
#:findlib ,ocaml4.07-findlib
#:dune ,ocaml4.07-dune))
(native-inputs
`(("ocaml-ppx-expect" ,(package-with-ocaml4.07 ocaml-ppx-expect))))
(home-page "https://github.com/janestreet/spawn") (home-page "https://github.com/janestreet/spawn")
(synopsis "Spawning sub-processes") (synopsis "Spawning sub-processes")
(description (description
@ -6495,6 +6485,35 @@ thousands of times faster than fork.
@end itemize") @end itemize")
(license license:asl2.0))) (license license:asl2.0)))
(define-public ocaml4.07-spawn
(package-with-ocaml4.07
(package
(inherit ocaml-spawn)
(version "0.13.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/janestreet/spawn")
(commit (string-append "v" version))))
(file-name (git-file-name "ocaml4.07-spawn" version))
(sha256
(base32
"1w003k1kw1lmyiqlk58gkxx8rac7dchiqlz6ah7aj7bh49b36ppf"))))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'fix-tests
(lambda _
(substitute* "test/tests.ml"
(("/bin/pwd") (which "pwd"))
(("/bin/echo") (which "echo")))
#t)))
#:ocaml ,ocaml-4.07
#:findlib ,ocaml4.07-findlib
#:dune ,ocaml4.07-dune))
(propagated-inputs '())
(properties '()))))
(define-public ocaml4.07-core (define-public ocaml4.07-core
(package (package
(name "ocaml4.07-core") (name "ocaml4.07-core")