Merge pull request #47436 from vbgl/dune-1.3.0

dune: 1.2.1 -> 1.3.0
This commit is contained in:
Sarah Brofeldt 2018-09-28 09:30:28 +02:00 committed by GitHub
commit 535ac188d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,26 +1,26 @@
{ stdenv, fetchFromGitHub, ocamlPackages, opaline }:
{ stdenv, fetchurl, ocamlPackages, opaline }:
stdenv.mkDerivation rec {
name = "dune-${version}";
version = "1.2.1";
src = fetchFromGitHub {
owner = "ocaml";
repo = "dune";
rev = "${version}";
sha256 = "14m5zg1b6d0y03c5qsmqmwiwz2h0iys02rlgn6kzm519ck679bkq";
version = "1.3.0";
src = fetchurl {
url = "https://github.com/ocaml/dune/releases/download/${version}/dune-${version}.tbz";
sha256 = "15bzakiclipsyjgcfrj83xdpwwww3aaijyw01bn5cx96cmcqyjad";
};
buildInputs = with ocamlPackages; [ ocaml findlib ];
buildFlags = "release";
dontAddPrefix = true;
installPhase = "${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";
meta = {
inherit (src.meta) homepage;
description = "Fast, portable and opinionated build system";
homepage = "https://github.com/ocaml/dune";
description = "A composable build system";
maintainers = [ stdenv.lib.maintainers.vbgl ];
license = stdenv.lib.licenses.asl20;
license = stdenv.lib.licenses.mit;
inherit (ocamlPackages.ocaml.meta) platforms;
};
}