gnu: ocaml-cppo: Use dune-build-system.
* gnu/packages/ocaml.scm (ocaml-cppo): Use dune-build-system.
This commit is contained in:
parent
5d0712638f
commit
48b27902de
@ -3023,24 +3023,12 @@ provide a tool that can be used to:
|
|||||||
(sha256 (base32
|
(sha256 (base32
|
||||||
"1dkm3d5h6h56y937gcdk2wixlpzl59vv5pmiafglr89p20kf7gqf"))
|
"1dkm3d5h6h56y937gcdk2wixlpzl59vv5pmiafglr89p20kf7gqf"))
|
||||||
(file-name (string-append name "-" version ".tar.gz"))))
|
(file-name (string-append name "-" version ".tar.gz"))))
|
||||||
(build-system ocaml-build-system)
|
(build-system dune-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:tests? #f
|
||||||
(modify-phases %standard-phases
|
#:build-flags (list "--profile" "release")))
|
||||||
(delete 'configure)
|
|
||||||
(replace 'build
|
|
||||||
(lambda _
|
|
||||||
(invoke "dune" "build" "@install" "--profile" "release")
|
|
||||||
#t))
|
|
||||||
(replace 'install
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
(invoke "dune" "install"
|
|
||||||
"--prefix" (assoc-ref outputs "out"))
|
|
||||||
#t)))
|
|
||||||
#:tests? #f))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("dune" ,dune)
|
`(("ocamlbuild" ,ocamlbuild)))
|
||||||
("ocamlbuild" ,ocamlbuild)))
|
|
||||||
(home-page "https://github.com/mjambon/cppo")
|
(home-page "https://github.com/mjambon/cppo")
|
||||||
(synopsis "Equivalent of the C preprocessor for OCaml programs")
|
(synopsis "Equivalent of the C preprocessor for OCaml programs")
|
||||||
(description "Cppo is an equivalent of the C preprocessor for OCaml
|
(description "Cppo is an equivalent of the C preprocessor for OCaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user