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

31 lines
769 B
Nix
Raw Normal View History

2019-03-20 03:28:28 -07:00
{ stdenv, fetchurl, ocaml, findlib, opaline }:
2018-02-21 20:06:07 -08:00
stdenv.mkDerivation rec {
pname = "dune";
2019-07-19 19:29:24 -07:00
version = "1.11.0";
2018-09-25 06:40:02 -07:00
src = fetchurl {
2019-07-19 19:29:24 -07:00
url = "https://github.com/ocaml/dune/releases/download/${version}/dune-build-info-${version}.tbz";
sha256 = "11jl2vavypbgvwblch25q10hsd16myik9b3cd4d64zhxk1fzbzdw";
};
2019-03-20 03:28:28 -07:00
buildInputs = [ ocaml findlib ];
2018-09-25 06:40:02 -07:00
buildFlags = "release";
2018-04-30 02:52:30 -07:00
dontAddPrefix = true;
installPhase = ''
runHook preInstall
${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR
runHook postInstall
'';
meta = {
homepage = "https://dune.build/";
2018-09-25 06:40:02 -07:00
description = "A composable build system";
maintainers = [ stdenv.lib.maintainers.vbgl ];
2018-09-25 06:40:02 -07:00
license = stdenv.lib.licenses.mit;
2019-03-20 03:28:28 -07:00
inherit (ocaml.meta) platforms;
};
}