1 { lib, stdenv, fetchurl, ocaml, findlib }:
3 if lib.versionOlder ocaml.version "4.08"
4 then throw "dune 2 is not available for OCaml ${ocaml.version}"
7 stdenv.mkDerivation rec {
12 url = "https://github.com/ocaml/dune/releases/download/${version}/dune-site-${version}.tbz";
13 sha256 = "sha256:1ml8bxym8sdfz25bx947al7cvsi2zg5lcv7x9w6xb01cmdryqr9y";
16 nativeBuildInputs = [ ocaml findlib ];
19 buildFlags = [ "release" ];
22 dontAddStaticConfigureFlags = true;
23 configurePlatforms = [];
25 installFlags = [ "PREFIX=${placeholder "out"}" "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
28 homepage = "https://dune.build/";
29 description = "A composable build system";
31 changelog = "https://github.com/ocaml/dune/raw/${version}/CHANGES.md";
32 maintainers = [ lib.maintainers.vbgl lib.maintainers.marsam ];
33 license = lib.licenses.mit;
34 inherit (ocaml.meta) platforms;