nixpkgs/pkgs/development/tools/ocaml/jbuilder/default.nix

29 lines
759 B
Nix
Raw Normal View History

2018-05-28 08:12:33 +02:00
{ stdenv, fetchFromGitHub, ocamlPackages, opaline }:
2018-02-22 05:06:07 +01:00
stdenv.mkDerivation rec {
name = "jbuilder-${version}";
version = "1.0.1";
2018-02-22 05:06:07 +01:00
src = fetchFromGitHub {
owner = "ocaml";
repo = "dune";
rev = "${version}";
sha256 = "0k6r9qrbwlnb4rqwqys5fr7khwza7n7d8wpgl9jbb3xpag2zl3q9";
};
2018-05-28 08:12:33 +02:00
buildInputs = with ocamlPackages; [ ocaml findlib ];
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";
preFixup = "rm -rf $out/jbuilder";
meta = {
2018-07-11 03:26:52 +02:00
inherit (src.meta) homepage;
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;
};
}