mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 17:10:48 +00:00
29 lines
759 B
Nix
29 lines
759 B
Nix
{ stdenv, fetchFromGitHub, ocamlPackages, opaline }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "jbuilder-${version}";
|
|
version = "1.0.0";
|
|
src = fetchFromGitHub {
|
|
owner = "ocaml";
|
|
repo = "dune";
|
|
rev = "${version}";
|
|
sha256 = "08gb7l2rrfrsqvigna1cvvphww80zlvj7lqvaj4m4y9llanmnxcg";
|
|
};
|
|
|
|
buildInputs = with ocamlPackages; [ ocaml findlib ];
|
|
|
|
dontAddPrefix = true;
|
|
|
|
installPhase = "${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";
|
|
|
|
preFixup = "rm -rf $out/jbuilder";
|
|
|
|
meta = {
|
|
inherit (src.meta) homepage;
|
|
description = "Fast, portable and opinionated build system";
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
license = stdenv.lib.licenses.asl20;
|
|
inherit (ocamlPackages.ocaml.meta) platforms;
|
|
};
|
|
}
|