diff options
Diffstat (limited to 'nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix')
-rw-r--r-- | nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix b/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix new file mode 100644 index 000000000000..e9e7f9d279ea --- /dev/null +++ b/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchFromGitHub, ocaml, findlib, dune, js_of_ocaml-compiler +, camlp4, ocsigen_deriving +}: + +stdenv.mkDerivation rec { + version = "3.2.1"; + pname = "js_of_ocaml-camlp4"; + + src = fetchFromGitHub { + owner = "ocsigen"; + repo = "js_of_ocaml"; + rev = version; + sha256 = "1v2hfq0ra9j07yz6pj6m03hrvgys4vmx0gclchv94yywpb2wc7ik"; + }; + + inherit (js_of_ocaml-compiler) installPhase meta; + + buildInputs = [ ocaml findlib dune camlp4 ocsigen_deriving ]; + + buildPhase = "dune build -p js_of_ocaml-camlp4"; +} |