2018-02-22 04:06:07 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, opam }:
|
2017-03-10 20:13:56 +00:00
|
|
|
|
2018-02-22 04:06:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "jbuilder-${version}";
|
2018-03-01 17:12:29 +00:00
|
|
|
version = "1.0+beta17";
|
2018-02-22 04:06:07 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocaml";
|
|
|
|
repo = "dune";
|
|
|
|
rev = "${version}";
|
2018-03-01 17:12:29 +00:00
|
|
|
sha256 = "04pyry459hp2r2s9m5xkcq1glzp20ddz5wb1w8nzp3zgygy0431x";
|
2017-03-10 20:13:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml ];
|
|
|
|
|
|
|
|
installPhase = "${opam}/bin/opam-installer -i --prefix=$out --libdir=$OCAMLFIND_DESTDIR";
|
|
|
|
|
|
|
|
preFixup = "rm -rf $out/jbuilder";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/janestreet/jbuilder;
|
|
|
|
description = "Fast, portable and opinionated build system";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|