2018-09-25 15:40:02 +02:00
|
|
|
{ stdenv, fetchurl, ocamlPackages, opaline }:
|
2017-03-10 21:13:56 +01:00
|
|
|
|
2018-02-22 05:06:07 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-09-05 18:11:47 +02:00
|
|
|
name = "dune-${version}";
|
2018-11-09 13:26:18 +01:00
|
|
|
version = "1.5.1";
|
2018-09-25 15:40:02 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocaml/dune/releases/download/${version}/dune-${version}.tbz";
|
2018-11-09 13:26:18 +01:00
|
|
|
sha256 = "1dbf7wwhr7b41g3p24qb9v5r1vvgrk6i9w8f7y7k5k527xy9jk5w";
|
2017-03-10 21:13:56 +01:00
|
|
|
};
|
|
|
|
|
2018-05-28 08:12:33 +02:00
|
|
|
buildInputs = with ocamlPackages; [ ocaml findlib ];
|
2017-03-10 21:13:56 +01:00
|
|
|
|
2018-09-25 15:40:02 +02:00
|
|
|
buildFlags = "release";
|
|
|
|
|
2018-04-30 11:52:30 +02:00
|
|
|
dontAddPrefix = true;
|
|
|
|
|
2018-11-09 13:26:18 +01:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2017-03-10 21:13:56 +01:00
|
|
|
|
|
|
|
meta = {
|
2018-11-09 13:26:18 +01:00
|
|
|
homepage = https://github.com/ocaml/dune;
|
2018-09-25 15:40:02 +02:00
|
|
|
description = "A composable build system";
|
2017-03-10 21:13:56 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
2018-09-25 15:40:02 +02:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2018-05-28 08:12:33 +02:00
|
|
|
inherit (ocamlPackages.ocaml.meta) platforms;
|
2017-03-10 21:13:56 +01:00
|
|
|
};
|
|
|
|
}
|