summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix')
-rw-r--r--pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix b/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix
new file mode 100644
index 00000000000..b3a37e3f760
--- /dev/null
+++ b/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix
@@ -0,0 +1,13 @@
+{ stdenv, ocaml, findlib, jbuilder, js_of_ocaml-compiler
+, camlp4
+}:
+
+stdenv.mkDerivation rec {
+	name = "js_of_ocaml-camlp4-${version}"; 
+
+	inherit (js_of_ocaml-compiler) version src installPhase meta;
+
+	buildInputs = [ ocaml findlib jbuilder camlp4 ];
+
+	buildPhase = "jbuilder build -p js_of_ocaml-camlp4";
+}