nixpkgs/pkgs/development/tools/ocaml/dune/default.nix
Mario Rodas 2e89de61c5 dune: 1.4.0 -> 1.5.0 (#49848)
* dune: 1.4.0 -> 1.5.1

* reason: use dune installPhase
2018-11-09 12:26:18 +00:00

30 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;
};
}