2018-05-28 07:12:33 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocamlPackages, opaline }:
|
2017-03-10 20:13:56 +00:00
|
|
|
|
2018-02-22 04:06:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-09-05 17:11:47 +01:00
|
|
|
name = "dune-${version}";
|
2018-09-20 23:51:03 +01:00
|
|
|
version = "1.2.1";
|
2018-02-22 04:06:07 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocaml";
|
|
|
|
repo = "dune";
|
|
|
|
rev = "${version}";
|
2018-09-20 23:51:03 +01:00
|
|
|
sha256 = "14m5zg1b6d0y03c5qsmqmwiwz2h0iys02rlgn6kzm519ck679bkq";
|
2017-03-10 20:13:56 +00:00
|
|
|
};
|
|
|
|
|
2018-05-28 07:12:33 +01:00
|
|
|
buildInputs = with ocamlPackages; [ ocaml findlib ];
|
2017-03-10 20:13:56 +00:00
|
|
|
|
2018-04-30 10:52:30 +01:00
|
|
|
dontAddPrefix = true;
|
|
|
|
|
2018-05-28 07:12:33 +01:00
|
|
|
installPhase = "${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";
|
2017-03-10 20:13:56 +00:00
|
|
|
|
|
|
|
meta = {
|
2018-07-11 02:26:52 +01:00
|
|
|
inherit (src.meta) homepage;
|
2017-03-10 20:13:56 +00:00
|
|
|
description = "Fast, portable and opinionated build system";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
2018-05-28 07:12:33 +01:00
|
|
|
inherit (ocamlPackages.ocaml.meta) platforms;
|
2017-03-10 20:13:56 +00:00
|
|
|
};
|
|
|
|
}
|