2019-04-19 16:14:47 +02:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, js_of_ocaml-compiler
|
2018-04-01 09:02:39 +02:00
|
|
|
, camlp4, ocsigen_deriving
|
2017-08-27 16:44:39 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-19 16:14:47 +02:00
|
|
|
version = "3.2.1";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "js_of_ocaml-camlp4";
|
2017-08-27 16:44:39 +02:00
|
|
|
|
2019-04-19 16:14:47 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocsigen";
|
|
|
|
repo = "js_of_ocaml";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1v2hfq0ra9j07yz6pj6m03hrvgys4vmx0gclchv94yywpb2wc7ik";
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (js_of_ocaml-compiler) installPhase meta;
|
2017-08-27 16:44:39 +02:00
|
|
|
|
2018-09-05 18:11:47 +02:00
|
|
|
buildInputs = [ ocaml findlib dune camlp4 ocsigen_deriving ];
|
2017-08-27 16:44:39 +02:00
|
|
|
|
2018-09-05 18:11:47 +02:00
|
|
|
buildPhase = "dune build -p js_of_ocaml-camlp4";
|
2017-08-27 16:44:39 +02:00
|
|
|
}
|