30 lines
808 B
Nix
30 lines
808 B
Nix
{ stdenv, fetchurl, ocamlPackages, opaline }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "dune-${version}";
|
|
version = "1.6.2";
|
|
src = fetchurl {
|
|
url = "https://github.com/ocaml/dune/releases/download/${version}/dune-${version}.tbz";
|
|
sha256 = "1k675mfywmsj4v4z2f5a4vqinl1jbzzb7v5k6rzyfgvxzd7gil40";
|
|
};
|
|
|
|
buildInputs = with ocamlPackages; [ ocaml findlib ];
|
|
|
|
buildFlags = "release";
|
|
|
|
dontAddPrefix = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = https://github.com/ocaml/dune;
|
|
description = "A composable build system";
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
license = stdenv.lib.licenses.mit;
|
|
inherit (ocamlPackages.ocaml.meta) platforms;
|
|
};
|
|
}
|