2018-09-25 13:40:02 +00:00
|
|
|
{ stdenv, fetchurl, ocamlPackages, opaline }:
|
2017-03-10 20:13:56 +00:00
|
|
|
|
2018-02-22 04:06:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-09-05 16:11:47 +00:00
|
|
|
name = "dune-${version}";
|
2018-10-16 07:21:05 +00:00
|
|
|
version = "1.4.0";
|
2018-09-25 13:40:02 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocaml/dune/releases/download/${version}/dune-${version}.tbz";
|
2018-10-16 07:21:05 +00:00
|
|
|
sha256 = "1fz1jx1d48yb40qan4hw25h8ia55vs7mp94a3rr7cf5gb5ap2zkj";
|
2017-03-10 20:13:56 +00:00
|
|
|
};
|
|
|
|
|
2018-05-28 06:12:33 +00:00
|
|
|
buildInputs = with ocamlPackages; [ ocaml findlib ];
|
2017-03-10 20:13:56 +00:00
|
|
|
|
2018-09-25 13:40:02 +00:00
|
|
|
buildFlags = "release";
|
|
|
|
|
2018-04-30 09:52:30 +00:00
|
|
|
dontAddPrefix = true;
|
|
|
|
|
2018-05-28 06:12:33 +00:00
|
|
|
installPhase = "${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";
|
2017-03-10 20:13:56 +00:00
|
|
|
|
|
|
|
meta = {
|
2018-09-25 13:40:02 +00:00
|
|
|
homepage = "https://github.com/ocaml/dune";
|
|
|
|
description = "A composable build system";
|
2017-03-10 20:13:56 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
2018-09-25 13:40:02 +00:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2018-05-28 06:12:33 +00:00
|
|
|
inherit (ocamlPackages.ocaml.meta) platforms;
|
2017-03-10 20:13:56 +00:00
|
|
|
};
|
|
|
|
}
|