blob: d48bc4101113bfb6ca0c94530ae6af1625ab8af2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{ stdenv, fetchFromGitHub, ocaml, opam }:
stdenv.mkDerivation rec {
name = "jbuilder-${version}";
version = "1.0+beta17";
src = fetchFromGitHub {
owner = "ocaml";
repo = "dune";
rev = "${version}";
sha256 = "04pyry459hp2r2s9m5xkcq1glzp20ddz5wb1w8nzp3zgygy0431x";
};
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;
};
}
|