2017-03-10 21:13:56 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, opam }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-03-22 23:06:25 +01:00
|
|
|
name = "jbuilder-1.0+beta5";
|
2017-03-10 21:13:56 +01:00
|
|
|
src = fetchzip {
|
2017-03-22 23:06:25 +01:00
|
|
|
url = http://github.com/janestreet/jbuilder/archive/1.0+beta5.tar.gz;
|
|
|
|
sha256 = "00kh83n3216g1n7rhh14mcmw9bj5vzq7kiixm1abrc09dhwh4m7a";
|
2017-03-10 21:13:56 +01: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;
|
|
|
|
};
|
|
|
|
}
|