nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix
Weijia Wang b6eac37960
Merge pull request #213932 from vbgl/ocaml-dune3
ocamlPackages.dune_3: enable for OCaml < 4.08
2023-02-07 07:30:22 +01:00

30 lines
826 B
Nix

{ lib, fetchurl, buildDunePackage
, cmdliner, yojson, ppxlib, findlib
, menhir, menhirLib
}:
buildDunePackage rec {
pname = "js_of_ocaml-compiler";
version = "4.1.0";
duneVersion = "3";
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/ocsigen/js_of_ocaml/releases/download/${version}/js_of_ocaml-${version}.tbz";
sha256 = "sha256-kXk/KaWvPeq6P301zqsR5znP4KXMMFVvYgFGGm1CNu8=";
};
nativeBuildInputs = [ menhir ];
buildInputs = [ cmdliner ppxlib ];
configurePlatforms = [];
propagatedBuildInputs = [ menhirLib yojson findlib ];
meta = {
description = "Compiler from OCaml bytecode to Javascript";
homepage = "https://ocsigen.org/js_of_ocaml/";
license = lib.licenses.gpl2;
maintainers = [ lib.maintainers.vbgl ];
mainProgram = "js_of_ocaml";
};
}