@@ -1,19 +1,18 @@
1−{ lib, fetchFromGitHub, buildDunePackage
2−, ocaml, findlib, cmdliner, dune, cppo, yojson, ocaml-migrate-parsetree
1+{ lib, fetchurl, buildDunePackage
2+, ocaml, findlib, cmdliner, dune_2, cppo, yojson, ocaml-migrate-parsetree
33}:
44
55buildDunePackage rec {
66 pname = "js_of_ocaml-compiler";
7− version = "3.5.2";
7+ version = "3.6.0";
8+ useDune2 = true;
89
9− src = fetchFromGitHub {
10− owner = "ocsigen";
11− repo = "js_of_ocaml";
12− rev = version;
13− sha256 = "1fm855iavljx7rf9hii2qb7ky920zv082d9zlcl504by1bxp1yg8";
10+ src = fetchurl {
11+ url = "https://github.com/ocsigen/js_of_ocaml/releases/download/${version}/js_of_ocaml-${version}.tbz";
12+ sha256 = "51eaa89c83ef3168ef270bf7997cbc35a747936d3f51aa6fac58fb0323b4cbb0";
1413 };
1514
16− nativeBuildInputs = [ ocaml findlib dune cppo ];
15+ nativeBuildInputs = [ ocaml findlib dune_2 cppo ];
1716 buildInputs = [ cmdliner ];
1817
1918 configurePlatforms = [];
@@ -23,6 +22,6 @@ buildDunePackage rec {
2322 description = "Compiler from OCaml bytecode to Javascript";
2423 license = lib.licenses.gpl2;
2524 maintainers = [ lib.maintainers.vbgl ];
26− inherit (src.meta) homepage;
25+ homepage = "https://ocsigen.org/js_of_ocaml/";
2726 };
2827}