diff options
author | Julien Lepiller <julien@lepiller.eu> | 2019-02-01 19:18:42 +0100 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2019-02-05 22:34:24 +0100 |
commit | 3e3d5ffc3483c95902a1bc3c40da76138611fb48 (patch) | |
tree | d5bd8292c50d33e06a02f833ece9f499bac18adb /gnu | |
parent | dc361a2563fa0349ef169bd3edecb984932043bf (diff) | |
download | gnu-guix-3e3d5ffc3483c95902a1bc3c40da76138611fb48.tar gnu-guix-3e3d5ffc3483c95902a1bc3c40da76138611fb48.tar.gz |
gnu: Add ocaml-configurator.
* gnu/packages/ocaml.scm (ocaml-configurator): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/ocaml.scm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 2adbaf5232..7e7e58cf5f 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -5996,3 +5996,37 @@ cryptographic-quality randomness in favor of performance.") (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))) |