23 lines
682 B
Nix
23 lines
682 B
Nix
{ stdenv, fetchzip, ocaml, opam }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "jbuilder-1.0+beta7";
|
|
src = fetchzip {
|
|
url = http://github.com/janestreet/jbuilder/archive/1.0+beta7.tar.gz;
|
|
sha256 = "10qjqs6gv9y8s580gvssjm56xw72pcxd5lkpzqpz6cz4390d45i8";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|