3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/ocaml/dune/default.nix

27 lines
717 B
Nix
Raw Normal View History

2018-05-28 07:12:33 +01:00
{ stdenv, fetchFromGitHub, ocamlPackages, opaline }:
2018-02-22 04:06:07 +00:00
stdenv.mkDerivation rec {
2018-09-05 17:11:47 +01:00
name = "dune-${version}";
2018-09-20 23:51:03 +01:00
version = "1.2.1";
2018-02-22 04:06:07 +00:00
src = fetchFromGitHub {
owner = "ocaml";
repo = "dune";
rev = "${version}";
2018-09-20 23:51:03 +01:00
sha256 = "14m5zg1b6d0y03c5qsmqmwiwz2h0iys02rlgn6kzm519ck679bkq";
};
2018-05-28 07:12:33 +01:00
buildInputs = with ocamlPackages; [ ocaml findlib ];
2018-04-30 10:52:30 +01:00
dontAddPrefix = true;
2018-05-28 07:12:33 +01:00
installPhase = "${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";
meta = {
2018-07-11 02:26:52 +01:00
inherit (src.meta) homepage;
description = "Fast, portable and opinionated build system";
maintainers = [ stdenv.lib.maintainers.vbgl ];
license = stdenv.lib.licenses.asl20;
2018-05-28 07:12:33 +01:00
inherit (ocamlPackages.ocaml.meta) platforms;
};
}