2019-03-20 10:28:28 +00:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, opaline }:
|
2017-03-10 20:13:56 +00:00
|
|
|
|
2018-02-22 04:06:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-07-05 13:28:06 +01:00
|
|
|
pname = "dune";
|
|
|
|
version = "1.10.0";
|
2018-09-25 14:40:02 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocaml/dune/releases/download/${version}/dune-${version}.tbz";
|
2019-07-05 13:28:06 +01:00
|
|
|
sha256 = "15fx9rg16g7ig43rg4sdq0wp0br5h1mjxxgv8b15s317vqlfc5pd";
|
2017-03-10 20:13:56 +00:00
|
|
|
};
|
|
|
|
|
2019-03-20 10:28:28 +00:00
|
|
|
buildInputs = [ ocaml findlib ];
|
2017-03-10 20:13:56 +00:00
|
|
|
|
2018-09-25 14:40:02 +01:00
|
|
|
buildFlags = "release";
|
|
|
|
|
2018-04-30 10:52:30 +01:00
|
|
|
dontAddPrefix = true;
|
|
|
|
|
2018-11-09 12:26:18 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2017-03-10 20:13:56 +00:00
|
|
|
|
|
|
|
meta = {
|
2019-07-05 13:28:06 +01:00
|
|
|
homepage = "https://dune.build/";
|
2018-09-25 14:40:02 +01:00
|
|
|
description = "A composable build system";
|
2017-03-10 20:13:56 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
2018-09-25 14:40:02 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2019-03-20 10:28:28 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
2017-03-10 20:13:56 +00:00
|
|
|
};
|
|
|
|
}
|