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 {
|
|
|
|
name = "jbuilder-${version}";
|
2018-08-21 19:22:16 +02:00
|
|
|
version = "1.0.1";
|
2018-02-22 05:06:07 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocaml";
|
|
|
|
repo = "dune";
|
|
|
|
rev = "${version}";
|
2018-08-21 19:22:16 +02:00
|
|
|
sha256 = "0k6r9qrbwlnb4rqwqys5fr7khwza7n7d8wpgl9jbb3xpag2zl3q9";
|
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
|
|
|
|
|
|
|
preFixup = "rm -rf $out/jbuilder";
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|