From b44da656a365076986a5ddbd6c6ba6350d851a03 Mon Sep 17 00:00:00 2001 From: Jason Conroy Date: Sat, 10 Jan 2026 15:57:07 -0500 Subject: [PATCH] gnu: ocaml5: Add ocamlbuild. * gnu/packages/ocaml5.scm (ocamlbuild): New variable. Change-Id: I3d9a2c5c69bc39b1662b3f72de2b0d4a4eba1762 Signed-off-by: Julien Lepiller --- gnu/packages/ocaml5.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/ocaml5.scm b/gnu/packages/ocaml5.scm index fa3e7a9eb35..67004a4ad13 100644 --- a/gnu/packages/ocaml5.scm +++ b/gnu/packages/ocaml5.scm @@ -147,6 +147,39 @@ functional, imperative and object-oriented styles of programming.") (base32 "05jhy9zn53v12rn3sg3vllqf5blv1gp7f06803npimc58crxy6rv")))))) +(define-public ocamlbuild + (package + (name "ocaml5-ocamlbuild") + (version "0.16.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ocaml/ocamlbuild") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "148r0imzsalr7c3zqncrl4ji29wpb5ls5zkqxy6xnh9q99gxb4a6")))) + (build-system ocaml-build-system) + (arguments + `(#:make-flags ,#~(list (string-append "OCAMLBUILD_PREFIX=" + #$output) + (string-append "OCAMLBUILD_BINDIR=" + #$output "/bin") + (string-append "OCAMLBUILD_LIBDIR=" + #$output "/lib/ocaml/site-lib") + (string-append "OCAMLBUILD_MANDIR=" + #$output "/share/man")) + #:phases (modify-phases %standard-phases + (delete 'configure)) + ;; some failures because of changes in OCaml's error message formatting + #:tests? #f)) + (home-page "https://github.com/ocaml/ocamlbuild") + (synopsis "OCaml build tool") + (description "OCamlbuild is a generic build tool, that has built-in rules +for building OCaml library and programs.") + (license license:lgpl2.1+))) + (define-public ocaml5.3-result (package (name "ocaml5.3-result")