summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-08-27 14:32:39 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-08-27 14:36:25 +0000
commit4b1a1c1846b1b673f53728a02617a39ea6907006 (patch)
tree1154c5c6c5d87f7f6bf5e928dd29ce020bcb618e
parentef2c0f317a64bc43a8052296c903087ce4442c9e (diff)
downloadnixpkgs-4b1a1c1846b1b673f53728a02617a39ea6907006.tar
nixpkgs-4b1a1c1846b1b673f53728a02617a39ea6907006.tar.gz
nixpkgs-4b1a1c1846b1b673f53728a02617a39ea6907006.tar.bz2
nixpkgs-4b1a1c1846b1b673f53728a02617a39ea6907006.tar.lz
nixpkgs-4b1a1c1846b1b673f53728a02617a39ea6907006.tar.xz
nixpkgs-4b1a1c1846b1b673f53728a02617a39ea6907006.tar.zst
nixpkgs-4b1a1c1846b1b673f53728a02617a39ea6907006.zip
js_of_ocaml-ocamlbuild: init at 3.0.0
-rw-r--r--pkgs/development/tools/ocaml/js_of_ocaml/ocamlbuild.nix15
-rw-r--r--pkgs/top-level/ocaml-packages.nix2
2 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/development/tools/ocaml/js_of_ocaml/ocamlbuild.nix b/pkgs/development/tools/ocaml/js_of_ocaml/ocamlbuild.nix
new file mode 100644
index 00000000000..60ad695dc0b
--- /dev/null
+++ b/pkgs/development/tools/ocaml/js_of_ocaml/ocamlbuild.nix
@@ -0,0 +1,15 @@
+{ stdenv, ocaml, findlib, jbuilder, js_of_ocaml-compiler
+, ocamlbuild
+}:
+
+stdenv.mkDerivation rec {
+	name = "js_of_ocaml-ocamlbuild-${version}"; 
+
+	inherit (js_of_ocaml-compiler) version src installPhase meta;
+
+	buildInputs = [ ocaml findlib jbuilder ];
+
+	propagatedBuildInputs = [ ocamlbuild ];
+
+	buildPhase = "jbuilder build -p js_of_ocaml-ocamlbuild";
+}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index 9da6228f816..509d50ce986 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -274,6 +274,8 @@ let
 
     js_of_ocaml-compiler = callPackage ../development/tools/ocaml/js_of_ocaml/compiler.nix {};
 
+    js_of_ocaml-ocamlbuild = callPackage ../development/tools/ocaml/js_of_ocaml/ocamlbuild.nix {};
+
     jsonm = callPackage ../development/ocaml-modules/jsonm { };
 
     lablgl = callPackage ../development/ocaml-modules/lablgl { };