forked from mirrors/nixpkgs
2e89de61c5
* dune: 1.4.0 -> 1.5.1 * reason: use dune installPhase
31 lines
808 B
Nix
31 lines
808 B
Nix
{ stdenv, fetchurl, ocamlPackages, opaline }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "dune-${version}";
|
|
version = "1.5.1";
|
|
src = fetchurl {
|
|
url = "https://github.com/ocaml/dune/releases/download/${version}/dune-${version}.tbz";
|
|
sha256 = "1dbf7wwhr7b41g3p24qb9v5r1vvgrk6i9w8f7y7k5k527xy9jk5w";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|