summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/js_of_ocaml
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2018-03-31 10:29:13 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2018-04-07 13:24:22 +0200
commit6c3186848d0a672233569a5579fafd69423b4b39 (patch)
treedc300853e8da2bed8142b8652a28a7dc3c449b25 /pkgs/development/tools/ocaml/js_of_ocaml
parenta05f246bdd11489bd04739259c443e4ee572187a (diff)
downloadnixpkgs-6c3186848d0a672233569a5579fafd69423b4b39.tar
nixpkgs-6c3186848d0a672233569a5579fafd69423b4b39.tar.gz
nixpkgs-6c3186848d0a672233569a5579fafd69423b4b39.tar.bz2
nixpkgs-6c3186848d0a672233569a5579fafd69423b4b39.tar.lz
nixpkgs-6c3186848d0a672233569a5579fafd69423b4b39.tar.xz
nixpkgs-6c3186848d0a672233569a5579fafd69423b4b39.tar.zst
nixpkgs-6c3186848d0a672233569a5579fafd69423b4b39.zip
ocamlPackages.js_of_ocaml-ppx_deriving_json: init at 3.1.0
Diffstat (limited to 'pkgs/development/tools/ocaml/js_of_ocaml')
-rw-r--r--pkgs/development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix b/pkgs/development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix
new file mode 100644
index 00000000000..8f32887c5bf
--- /dev/null
+++ b/pkgs/development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix
@@ -0,0 +1,15 @@
+{ stdenv, ocaml, findlib, jbuilder, js_of_ocaml-compiler
+, js_of_ocaml, ppx_deriving
+}:
+
+stdenv.mkDerivation rec {
+	name = "js_of_ocaml-ppx_deriving_json-${version}";
+
+	inherit (js_of_ocaml-compiler) version src installPhase meta;
+
+	buildInputs = [ ocaml findlib jbuilder ];
+
+	propagatedBuildInputs = [ js_of_ocaml ppx_deriving ];
+
+	buildPhase = "jbuilder build -p js_of_ocaml-ppx_deriving_json";
+}