aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
committerMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
commitc4625b175f8200f643fd6e11010932ea44c78433 (patch)
treebce3f89888c8ac3991fa5569a878a9eab6801ccc /infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml
parent49f735974dd103039ddc4cb576bb76555164a9e7 (diff)
parentd661aa56a8843e991261510c1bb28fdc2f6975ae (diff)
Add 'infra/libkookie/' from commit 'd661aa56a8843e991261510c1bb28fdc2f6975ae'
git-subtree-dir: infra/libkookie git-subtree-mainline: 49f735974dd103039ddc4cb576bb76555164a9e7 git-subtree-split: d661aa56a8843e991261510c1bb28fdc2f6975ae
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/Makefile.conf.diff10
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix21
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix28
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/default.nix16
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/lwt.nix16
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/ocamlbuild.nix15
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/ppx.nix14
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix15
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/tyxml.nix16
9 files changed, 151 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/Makefile.conf.diff b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/Makefile.conf.diff
new file mode 100644
index 000000000000..e6fc96038ff8
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/Makefile.conf.diff
@@ -0,0 +1,10 @@
+--- old/Makefile.conf 2014-05-19 16:53:09.263564921 +0200
++++ new/Makefile.conf 2014-05-19 16:53:42.213152994 +0200
+@@ -1,6 +1,6 @@
+
+ # Where binaries are installed:
+-BINDIR := `dirname \`which ocamlc\``
++BINDIR := $(out)/bin
+
+ ####
+
diff --git a/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix
new file mode 100644
index 000000000000..e9e7f9d279ea
--- /dev/null
+++ b/infra/libkookie/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";
+}
diff --git a/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix
new file mode 100644
index 000000000000..c0812c39a3e6
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix
@@ -0,0 +1,28 @@
+{ lib, fetchurl, buildDunePackage
+, ocaml, findlib, cmdliner, dune_2, cppo, yojson, ocaml-migrate-parsetree
+, menhir
+}:
+
+buildDunePackage rec {
+ pname = "js_of_ocaml-compiler";
+ version = "3.7.0";
+ useDune2 = true;
+
+ src = fetchurl {
+ url = "https://github.com/ocsigen/js_of_ocaml/releases/download/${version}/js_of_ocaml-${version}.tbz";
+ sha256 = "0rw6cfkl3zlyav8q2w7grxxqjmg35mz5rgvmkiqb58nl4gmgzx6w";
+ };
+
+ nativeBuildInputs = [ ocaml findlib dune_2 cppo menhir ];
+ buildInputs = [ cmdliner ];
+
+ configurePlatforms = [];
+ propagatedBuildInputs = [ yojson ocaml-migrate-parsetree ];
+
+ meta = {
+ description = "Compiler from OCaml bytecode to Javascript";
+ license = lib.licenses.gpl2;
+ maintainers = [ lib.maintainers.vbgl ];
+ homepage = "https://ocsigen.org/js_of_ocaml/";
+ };
+}
diff --git a/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/default.nix b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/default.nix
new file mode 100644
index 000000000000..9a57b590d6cf
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/default.nix
@@ -0,0 +1,16 @@
+{ stdenv, ocaml, findlib, dune_2, js_of_ocaml-compiler
+, ocaml-migrate-parsetree, ppx_tools_versioned, uchar
+}:
+
+stdenv.mkDerivation {
+ pname = "js_of_ocaml";
+
+ inherit (js_of_ocaml-compiler) version src installPhase meta;
+
+ buildInputs = [ findlib ocaml-migrate-parsetree ppx_tools_versioned ];
+ nativeBuildInputs = [ ocaml findlib dune_2 ];
+
+ propagatedBuildInputs = [ js_of_ocaml-compiler uchar ];
+
+ buildPhase = "dune build -p js_of_ocaml";
+}
diff --git a/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/lwt.nix b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/lwt.nix
new file mode 100644
index 000000000000..2ad8578894f5
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/lwt.nix
@@ -0,0 +1,16 @@
+{ stdenv, ocaml, findlib, dune_2, js_of_ocaml-compiler, js_of_ocaml-ppx
+, ocaml-migrate-parsetree, ppx_tools_versioned
+, js_of_ocaml, ocaml_lwt, lwt_log
+}:
+
+stdenv.mkDerivation {
+ pname = "js_of_ocaml-lwt";
+
+ inherit (js_of_ocaml-compiler) version src installPhase meta;
+
+ buildInputs = [ ocaml findlib dune_2 js_of_ocaml-ppx ocaml-migrate-parsetree ppx_tools_versioned ];
+
+ propagatedBuildInputs = [ js_of_ocaml ocaml_lwt lwt_log ];
+
+ buildPhase = "dune build -p js_of_ocaml-lwt";
+}
diff --git a/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/ocamlbuild.nix b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/ocamlbuild.nix
new file mode 100644
index 000000000000..50bcd69eb66a
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/ocamlbuild.nix
@@ -0,0 +1,15 @@
+{ stdenv, ocaml, findlib, dune_2, js_of_ocaml-compiler
+, ocamlbuild
+}:
+
+stdenv.mkDerivation {
+ pname = "js_of_ocaml-ocamlbuild";
+
+ inherit (js_of_ocaml-compiler) version src installPhase meta;
+
+ buildInputs = [ ocaml findlib dune_2 ];
+
+ propagatedBuildInputs = [ ocamlbuild ];
+
+ buildPhase = "dune build -p js_of_ocaml-ocamlbuild";
+}
diff --git a/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/ppx.nix b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/ppx.nix
new file mode 100644
index 000000000000..69783c7eada1
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/ppx.nix
@@ -0,0 +1,14 @@
+{ stdenv, ocaml, findlib, dune_2, js_of_ocaml-compiler
+, ocaml-migrate-parsetree, ppx_tools_versioned
+, js_of_ocaml
+}:
+
+stdenv.mkDerivation {
+ pname = "js_of_ocaml-ppx";
+
+ inherit (js_of_ocaml-compiler) version src installPhase meta;
+
+ buildInputs = [ ocaml findlib dune_2 ocaml-migrate-parsetree ppx_tools_versioned js_of_ocaml ];
+
+ buildPhase = "dune build -p js_of_ocaml-ppx";
+}
diff --git a/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix
new file mode 100644
index 000000000000..d3cc4e08787f
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix
@@ -0,0 +1,15 @@
+{ stdenv, ocaml, findlib, dune_2, js_of_ocaml-compiler
+, js_of_ocaml, ppxlib
+}:
+
+stdenv.mkDerivation {
+ pname = "js_of_ocaml-ppx_deriving_json";
+
+ inherit (js_of_ocaml-compiler) version src installPhase meta;
+
+ buildInputs = [ ocaml findlib dune_2 ];
+
+ propagatedBuildInputs = [ js_of_ocaml ppxlib ];
+
+ buildPhase = "dune build -p js_of_ocaml-ppx_deriving_json";
+}
diff --git a/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/tyxml.nix b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/tyxml.nix
new file mode 100644
index 000000000000..fcfeeaf8d99a
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/tyxml.nix
@@ -0,0 +1,16 @@
+{ stdenv, ocaml, findlib, dune_2, js_of_ocaml-compiler
+, js_of_ocaml-ppx, ocaml-migrate-parsetree, ppx_tools_versioned
+, js_of_ocaml, reactivedata, tyxml
+}:
+
+stdenv.mkDerivation {
+ pname = "js_of_ocaml-tyxml";
+
+ inherit (js_of_ocaml-compiler) version src installPhase meta;
+
+ buildInputs = [ ocaml findlib dune_2 js_of_ocaml-ppx ocaml-migrate-parsetree ppx_tools_versioned ];
+
+ propagatedBuildInputs = [ js_of_ocaml reactivedata tyxml ];
+
+ buildPhase = "dune build -p js_of_ocaml-tyxml";
+}