gnu: Add ocaml-configurator.

* gnu/packages/ocaml.scm (ocaml-configurator): New variable.
This commit is contained in:
Julien Lepiller 2019-02-01 19:18:42 +01:00
parent dc361a2563
commit 3e3d5ffc34
No known key found for this signature in database
GPG key ID: 43111F4520086A0C

View file

@ -5996,3 +5996,37 @@ (define-public ocaml-jane-street-headers
(description "This package provides C header files shared between the
various Jane Street packages.")
(license license:asl2.0)))
(define-public ocaml-configurator
(package
(name "ocaml-configurator")
(version "0.11.0")
(source (origin
(method url-fetch)
(uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
(version-major+minor version)
"/files/configurator-v" version ".tar.gz"))
(sha256
(base32
"0kwgi3sh92v4n242dk5hgpwd85zzgnczgbkqi0q0kr6m93zgbf7p"))))
(build-system dune-build-system)
(arguments
;; No tests
`(#:tests? #f))
(propagated-inputs
`(("ocaml-base" ,ocaml-base)
("ocaml-stdio" ,ocaml-stdio)))
(home-page "https://github.com/janestreet/configurator")
(synopsis "Helper library for gathering system configuration")
(description "Configurator is a small library that helps writing OCaml
scripts that test features available on the system, in order to generate config.h
files for instance.
Configurator allows one to:
@itemize
@item test if a C program compiles
@item query pkg-config
@item import #define from OCaml header files
@item generate config.h file
@end itemize")
(license license:asl2.0)))