3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/ocaml/dune/default.nix

31 lines
775 B
Nix
Raw Normal View History

2019-03-20 10:28:28 +00:00
{ stdenv, fetchurl, ocaml, findlib, opaline }:
2018-02-22 04:06:07 +00:00
stdenv.mkDerivation rec {
2018-09-05 17:11:47 +01:00
name = "dune-${version}";
2019-04-15 09:40:42 +01:00
version = "1.9.1";
2018-09-25 14:40:02 +01:00
src = fetchurl {
url = "https://github.com/ocaml/dune/releases/download/${version}/dune-${version}.tbz";
2019-04-15 09:40:42 +01:00
sha256 = "0z4jnj0a5vxjqlwksplhag9b3s3iqdcpcpjjzfazv5jdl5cf58f9";
};
2019-03-20 10:28:28 +00:00
buildInputs = [ ocaml findlib ];
2018-09-25 14:40:02 +01:00
buildFlags = "release";
2018-04-30 10:52:30 +01:00
dontAddPrefix = true;
installPhase = ''
runHook preInstall
${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR
runHook postInstall
'';
meta = {
homepage = https://github.com/ocaml/dune;
2018-09-25 14:40:02 +01:00
description = "A composable build system";
maintainers = [ stdenv.lib.maintainers.vbgl ];
2018-09-25 14:40:02 +01:00
license = stdenv.lib.licenses.mit;
2019-03-20 10:28:28 +00:00
inherit (ocaml.meta) platforms;
};
}