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