nixpkgs/pkgs/development/tools/ocaml/dune/1.nix

34 lines
881 B
Nix
Raw Normal View History

{ stdenv, lib, fetchurl, ocaml, findlib }:
if !lib.versionAtLeast ocaml.version "4.02"
|| lib.versionAtLeast ocaml.version "4.12"
then throw "dune 1 is not available for OCaml ${ocaml.version}"
2019-07-23 19:26:00 +00:00
else
2018-02-22 04:06:07 +00:00
stdenv.mkDerivation rec {
pname = "dune";
version = "1.11.4";
2018-09-25 13:40:02 +00:00
src = fetchurl {
2019-07-20 02:29:24 +00:00
url = "https://github.com/ocaml/dune/releases/download/${version}/dune-build-info-${version}.tbz";
sha256 = "1rkc8lqw30ifjaz8d81la6i8j05ffd0whpxqsbg6dci16945zjvp";
};
2019-03-20 10:28:28 +00:00
buildInputs = [ ocaml findlib ];
buildFlags = [ "release" ];
2021-01-08 16:25:54 +00:00
makeFlags = [
"PREFIX=${placeholder "out"}"
"LIBDIR=$(OCAMLFIND_DESTDIR)"
];
2018-09-25 13:40:02 +00:00
2018-04-30 09:52:30 +00:00
dontAddPrefix = true;
meta = with lib; {
homepage = "https://dune.build/";
2018-09-25 13:40:02 +00:00
description = "A composable build system";
maintainers = [ maintainers.vbgl maintainers.marsam ];
license = licenses.mit;
2019-03-20 10:28:28 +00:00
inherit (ocaml.meta) platforms;
};
}