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

27 lines
753 B
Nix
Raw Normal View History

2018-09-25 06:40:02 -07:00
{ stdenv, fetchurl, ocamlPackages, opaline }:
2018-02-21 20:06:07 -08:00
stdenv.mkDerivation rec {
2018-09-05 09:11:47 -07:00
name = "dune-${version}";
2018-09-25 06:40:02 -07:00
version = "1.3.0";
src = fetchurl {
url = "https://github.com/ocaml/dune/releases/download/${version}/dune-${version}.tbz";
sha256 = "15bzakiclipsyjgcfrj83xdpwwww3aaijyw01bn5cx96cmcqyjad";
};
2018-05-27 23:12:33 -07:00
buildInputs = with ocamlPackages; [ ocaml findlib ];
2018-09-25 06:40:02 -07:00
buildFlags = "release";
2018-04-30 02:52:30 -07:00
dontAddPrefix = true;
2018-05-27 23:12:33 -07:00
installPhase = "${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";
meta = {
2018-09-25 06:40:02 -07:00
homepage = "https://github.com/ocaml/dune";
description = "A composable build system";
maintainers = [ stdenv.lib.maintainers.vbgl ];
2018-09-25 06:40:02 -07:00
license = stdenv.lib.licenses.mit;
2018-05-27 23:12:33 -07:00
inherit (ocamlPackages.ocaml.meta) platforms;
};
}