diff --git a/pkgs/development/tools/ocaml/dune/default.nix b/pkgs/development/tools/ocaml/dune/default.nix index 857d6ff1b7c2..41e0084b28ff 100644 --- a/pkgs/development/tools/ocaml/dune/default.nix +++ b/pkgs/development/tools/ocaml/dune/default.nix @@ -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; }; }