nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix
R. RyanTM c9a8631201 ocamlPackages.js_of_ocaml: 3.2.0 -> 3.2.1 (#46263)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
js_of_ocaml
2018-09-18 18:10:42 +02:00

36 lines
867 B
Nix

{ stdenv, fetchFromGitHub, ocaml, findlib, dune
, cmdliner, cppo, yojson
}:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "js_of_ocaml-compiler is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "js_of_ocaml-compiler-${version}";
version = "3.2.1";
src = fetchFromGitHub {
owner = "ocsigen";
repo = "js_of_ocaml";
rev = version;
sha256 = "1v2hfq0ra9j07yz6pj6m03hrvgys4vmx0gclchv94yywpb2wc7ik";
};
buildInputs = [ ocaml findlib dune cmdliner cppo ];
propagatedBuildInputs = [ yojson ];
buildPhase = "dune build -p js_of_ocaml-compiler";
inherit (dune) installPhase;
meta = {
description = "Compiler from OCaml bytecode to Javascript";
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (src.meta) homepage;
inherit (ocaml.meta) platforms;
};
}