summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2021-01-07 13:04:31 +0100
committerJan Tojnar <jtojnar@gmail.com>2021-01-07 13:04:31 +0100
commitf19eb635b4585f6ba4f9f4c3e9e07f56623446f5 (patch)
tree4d64a15e34e8a2b54466ba165297a6bb08bfb280 /pkgs/development/ocaml-modules
parent0e4e47512d709e93c35fa575dd82e3e6ce4f884d (diff)
parent2be707eca80b573c931007de78c936d49ab45395 (diff)
Merge branch 'master' into staging-next
https://github.com/NixOS/nixpkgs/commit/b04fc593e7b55fe1f74421b11589f12a339c92e2 seems to have accidentally changed mkDerivation function for dfilemanager and solarus-quest-editor so I have reverted that here.
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/bap/default.nix7
-rw-r--r--pkgs/development/ocaml-modules/bisect_ppx-ocamlbuild/default.nix8
-rw-r--r--pkgs/development/ocaml-modules/bisect_ppx/default.nix11
-rw-r--r--pkgs/development/ocaml-modules/bitstring/default.nix13
-rw-r--r--pkgs/development/ocaml-modules/bitstring/ppx.nix18
-rw-r--r--pkgs/development/ocaml-modules/eliom/default.nix2
-rw-r--r--pkgs/development/ocaml-modules/lambda-term/default.nix23
-rw-r--r--pkgs/development/ocaml-modules/lwt/ppx.nix15
-rw-r--r--pkgs/development/ocaml-modules/mew/default.nix27
-rw-r--r--pkgs/development/ocaml-modules/mew_vi/default.nix27
-rw-r--r--pkgs/development/ocaml-modules/mirage-crypto/default.nix4
-rw-r--r--pkgs/development/ocaml-modules/mirage-crypto/rng-async.nix25
-rw-r--r--pkgs/development/ocaml-modules/mirage-crypto/rng-mirage.nix6
-rw-r--r--pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix2
-rw-r--r--pkgs/development/ocaml-modules/trie/default.nix23
15 files changed, 172 insertions, 39 deletions
diff --git a/pkgs/development/ocaml-modules/bap/default.nix b/pkgs/development/ocaml-modules/bap/default.nix
index 66b1dd67a9f2..e860ad13d405 100644
--- a/pkgs/development/ocaml-modules/bap/default.nix
+++ b/pkgs/development/ocaml-modules/bap/default.nix
@@ -2,6 +2,7 @@
, ocaml, findlib, ocamlbuild, ocaml_oasis,
bitstring, camlzip, cmdliner, core_kernel, ezjsonm, fileutils, ocaml_lwt, ocamlgraph, ocurl, re, uri, zarith, piqi, piqi-ocaml, uuidm, llvm, frontc, ounit, ppx_jane, parsexp,
utop, libxml2,
+ ppx_bitstring,
ppx_tools_versioned,
which, makeWrapper, writeText
, z3
@@ -40,7 +41,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ which makeWrapper ];
buildInputs = [ ocaml findlib ocamlbuild ocaml_oasis
- llvm ppx_tools_versioned
+ llvm ppx_bitstring ppx_tools_versioned
z3
utop libxml2 ];
@@ -63,6 +64,10 @@ stdenv.mkDerivation rec {
patches = [ ./dont-add-curses.patch ];
+ preConfigure = ''
+ substituteInPlace oasis/elf --replace bitstring.ppx ppx_bitstring
+ '';
+
configureFlags = [ "--enable-everything ${disableIda}" "--with-llvm-config=${llvm}/bin/llvm-config" ];
BAPBUILDFLAGS = "-j $(NIX_BUILD_CORES)";
diff --git a/pkgs/development/ocaml-modules/bisect_ppx-ocamlbuild/default.nix b/pkgs/development/ocaml-modules/bisect_ppx-ocamlbuild/default.nix
deleted file mode 100644
index 6a98267d89a5..000000000000
--- a/pkgs/development/ocaml-modules/bisect_ppx-ocamlbuild/default.nix
+++ /dev/null
@@ -1,8 +0,0 @@
-{ buildDunePackage, bisect_ppx, ocamlbuild }:
-
-buildDunePackage {
- minimumOCamlVersion = "4.02";
- inherit (bisect_ppx) version src meta;
- pname = "bisect_ppx-ocamlbuild";
- propagatedBuildInputs = [ ocamlbuild ];
-}
diff --git a/pkgs/development/ocaml-modules/bisect_ppx/default.nix b/pkgs/development/ocaml-modules/bisect_ppx/default.nix
index ce52c427cd07..eba010819949 100644
--- a/pkgs/development/ocaml-modules/bisect_ppx/default.nix
+++ b/pkgs/development/ocaml-modules/bisect_ppx/default.nix
@@ -1,24 +1,27 @@
-{ stdenv, fetchFromGitHub, buildDunePackage, ocaml-migrate-parsetree, ppx_tools_versioned }:
+{ lib, fetchFromGitHub, buildDunePackage, cmdliner, ocaml-migrate-parsetree, ppx_tools_versioned }:
buildDunePackage rec {
pname = "bisect_ppx";
- version = "1.4.0";
+ version = "2.5.0";
+
+ useDune2 = true;
src = fetchFromGitHub {
owner = "aantron";
repo = "bisect_ppx";
rev = version;
- sha256 = "1plhm4pvrhpapz5zaks194ji1fgzmp13y942g10pbn9m7kgkqg4h";
+ sha256 = "0w2qd1myvh333jvkf8hgrqzl8ns4xgfggk4frf1ij3jyc7qc0868";
};
buildInputs = [
+ cmdliner
ocaml-migrate-parsetree
ppx_tools_versioned
];
meta = {
description = "Code coverage for OCaml";
- license = stdenv.lib.licenses.mpl20;
+ license = lib.licenses.mit;
homepage = "https://github.com/aantron/bisect_ppx";
};
}
diff --git a/pkgs/development/ocaml-modules/bitstring/default.nix b/pkgs/development/ocaml-modules/bitstring/default.nix
index 386503039e05..583017d9ddec 100644
--- a/pkgs/development/ocaml-modules/bitstring/default.nix
+++ b/pkgs/development/ocaml-modules/bitstring/default.nix
@@ -1,20 +1,21 @@
-{ stdenv, fetchFromGitHub, buildDunePackage, ppx_tools_versioned, ounit }:
+{ lib, fetchFromGitHub, buildDunePackage, stdlib-shims }:
buildDunePackage rec {
pname = "bitstring";
- version = "3.1.1";
+ version = "4.0.1";
+
+ useDune2 = true;
src = fetchFromGitHub {
owner = "xguerin";
repo = pname;
rev = "v${version}";
- sha256 = "1ys8xx174jf8v5sm0lbxvzhdlcs5p0fhy1gvf58gad2g4gvgpvxc";
+ sha256 = "1z7jmgljvp52lvn3ml2cp6gssxqp4sikwyjf6ym97cycbcw0fjjm";
};
- buildInputs = [ ppx_tools_versioned ounit ];
- doCheck = true;
+ propagatedBuildInputs = [ stdlib-shims ];
- meta = with stdenv.lib; {
+ meta = with lib; {
description = "This library adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml";
homepage = "https://github.com/xguerin/bitstring";
license = licenses.lgpl21Plus;
diff --git a/pkgs/development/ocaml-modules/bitstring/ppx.nix b/pkgs/development/ocaml-modules/bitstring/ppx.nix
new file mode 100644
index 000000000000..ee0a8c51f732
--- /dev/null
+++ b/pkgs/development/ocaml-modules/bitstring/ppx.nix
@@ -0,0 +1,18 @@
+{ lib, buildDunePackage, ocaml
+, bitstring, ppxlib
+, ounit
+}:
+
+buildDunePackage rec {
+ pname = "ppx_bitstring";
+ inherit (bitstring) version useDune2 src;
+
+ buildInputs = [ bitstring ppxlib ];
+
+ doCheck = lib.versionAtLeast ocaml.version "4.08";
+ checkInputs = [ ounit ];
+
+ meta = bitstring.meta // {
+ description = "Bitstrings and bitstring matching for OCaml - PPX extension";
+ };
+}
diff --git a/pkgs/development/ocaml-modules/eliom/default.nix b/pkgs/development/ocaml-modules/eliom/default.nix
index de2955e57c92..5d3c53100449 100644
--- a/pkgs/development/ocaml-modules/eliom/default.nix
+++ b/pkgs/development/ocaml-modules/eliom/default.nix
@@ -1,6 +1,7 @@
{ stdenv, fetchzip, which, ocsigen_server, ocaml,
lwt_react,
opaline, ppx_deriving, findlib
+, ppx_tools_versioned
, js_of_ocaml-ocamlbuild, js_of_ocaml-ppx, js_of_ocaml-ppx_deriving_json
, js_of_ocaml-lwt
, js_of_ocaml-tyxml
@@ -22,6 +23,7 @@ stdenv.mkDerivation rec
};
buildInputs = [ ocaml which findlib js_of_ocaml-ocamlbuild js_of_ocaml-ppx_deriving_json opaline
+ ppx_tools_versioned
];
propagatedBuildInputs = [
diff --git a/pkgs/development/ocaml-modules/lambda-term/default.nix b/pkgs/development/ocaml-modules/lambda-term/default.nix
index f02ff4d29962..0d5babad0428 100644
--- a/pkgs/development/ocaml-modules/lambda-term/default.nix
+++ b/pkgs/development/ocaml-modules/lambda-term/default.nix
@@ -1,16 +1,19 @@
-{ stdenv, fetchurl, libev, buildDunePackage, zed, lwt_log, lwt_react }:
+{ lib, fetchFromGitHub, buildDunePackage, zed, lwt_log, lwt_react, mew_vi }:
buildDunePackage rec {
pname = "lambda-term";
- version = "2.0.3";
+ version = "3.1.0";
- src = fetchurl {
- url = "https://github.com/ocaml-community/lambda-term/releases/download/${version}/lambda-term-${version}.tbz";
- sha256 = "1n1b3ffj41a1lm2315hh870yj9h8gg8g9jcxha6dr3xx8r84np3v";
+ useDune2 = true;
+
+ src = fetchFromGitHub {
+ owner = "ocaml-community";
+ repo = pname;
+ rev = version;
+ sha256 = "1k0ykiz0vhpyyj9fkss29ajas4fh1xh449j702xkvayqipzj1mkg";
};
- buildInputs = [ libev ];
- propagatedBuildInputs = [ zed lwt_log lwt_react ];
+ propagatedBuildInputs = [ zed lwt_log lwt_react mew_vi ];
meta = { description = "Terminal manipulation library for OCaml";
longDescription = ''
@@ -28,10 +31,10 @@ buildDunePackage rec {
console applications.
'';
- homepage = "https://github.com/diml/lambda-term";
- license = stdenv.lib.licenses.bsd3;
+ inherit (src.meta) homepage;
+ license = lib.licenses.bsd3;
maintainers = [
- stdenv.lib.maintainers.gal_bolle
+ lib.maintainers.gal_bolle
];
};
}
diff --git a/pkgs/development/ocaml-modules/lwt/ppx.nix b/pkgs/development/ocaml-modules/lwt/ppx.nix
index f2707064f2af..2df17844d1a0 100644
--- a/pkgs/development/ocaml-modules/lwt/ppx.nix
+++ b/pkgs/development/ocaml-modules/lwt/ppx.nix
@@ -1,8 +1,12 @@
-{ fetchzip, buildDunePackage, lwt, ppx_tools_versioned }:
+{ fetchzip, buildDunePackage, lwt, ppxlib }:
buildDunePackage {
pname = "lwt_ppx";
- version = "2.0.1";
+ version = "2.0.2";
+
+ useDune2 = true;
+
+ minimumOCamlVersion = "4.04";
src = fetchzip {
# `lwt_ppx` has a different release cycle than Lwt, but it's included in
@@ -12,12 +16,11 @@ buildDunePackage {
#
# This is particularly useful for overriding Lwt without breaking `lwt_ppx`,
# as new Lwt releases may contain broken `lwt_ppx` code.
- url = "https://github.com/ocsigen/lwt/archive/5.2.0.tar.gz";
- sha256 = "1znw8ckwdmqsnrcgar4g33zgr659l4l904bllrz69bbwdnfmz2x3";
+ url = "https://github.com/ocsigen/lwt/archive/5.4.0.tar.gz";
+ sha256 = "1ay1zgadnw19r9hl2awfjr22n37l7rzxd9v73pjbahavwm2ay65d";
};
-
- propagatedBuildInputs = [ lwt ppx_tools_versioned ];
+ propagatedBuildInputs = [ lwt ppxlib ];
meta = {
description = "Ppx syntax extension for Lwt";
diff --git a/pkgs/development/ocaml-modules/mew/default.nix b/pkgs/development/ocaml-modules/mew/default.nix
new file mode 100644
index 000000000000..819bb020050c
--- /dev/null
+++ b/pkgs/development/ocaml-modules/mew/default.nix
@@ -0,0 +1,27 @@
+{ lib, buildDunePackage, fetchFromGitHub
+, result, trie
+}:
+
+buildDunePackage rec {
+ pname = "mew";
+ version = "0.1.0";
+
+ useDune2 = true;
+
+ src = fetchFromGitHub {
+ owner = "kandu";
+ repo = pname;
+ rev = version;
+ sha256 = "0417xsghj92v3xa5q4dk4nzf2r4mylrx2fd18i7cg3nzja65nia2";
+ };
+
+ propagatedBuildInputs = [ result trie ];
+
+ meta = {
+ inherit (src.meta) homepage;
+ license = lib.licenses.mit;
+ description = "Modal Editing Witch";
+ maintainers = [ lib.maintainers.vbgl ];
+ };
+
+}
diff --git a/pkgs/development/ocaml-modules/mew_vi/default.nix b/pkgs/development/ocaml-modules/mew_vi/default.nix
new file mode 100644
index 000000000000..39228585fe3c
--- /dev/null
+++ b/pkgs/development/ocaml-modules/mew_vi/default.nix
@@ -0,0 +1,27 @@
+{ lib, buildDunePackage, fetchFromGitHub
+, mew, react
+}:
+
+buildDunePackage rec {
+ pname = "mew_vi";
+ version = "0.5.0";
+
+ useDune2 = true;
+
+ src = fetchFromGitHub {
+ owner = "kandu";
+ repo = pname;
+ rev = version;
+ sha256 = "0lihbf822k5zasl60w5mhwmdkljlq49c9saayrws7g4qc1j353r8";
+ };
+
+ propagatedBuildInputs = [ mew react ];
+
+ meta = {
+ inherit (src.meta) homepage;
+ license = lib.licenses.mit;
+ description = "Modal Editing Witch, VI interpreter";
+ maintainers = [ lib.maintainers.vbgl ];
+ };
+
+}
diff --git a/pkgs/development/ocaml-modules/mirage-crypto/default.nix b/pkgs/development/ocaml-modules/mirage-crypto/default.nix
index f963e8e15d08..c2ede31dd3f1 100644
--- a/pkgs/development/ocaml-modules/mirage-crypto/default.nix
+++ b/pkgs/development/ocaml-modules/mirage-crypto/default.nix
@@ -4,11 +4,11 @@ buildDunePackage rec {
minimumOCamlVersion = "4.08";
pname = "mirage-crypto";
- version = "0.8.7";
+ version = "0.8.8";
src = fetchurl {
url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-v${version}.tbz";
- sha256 = "1gx86h6kk39zq3kvl854jc2ap2755paalp1f7iv8r9js2xnbxfxy";
+ sha256 = "19czylfyakckfzzcbqgv9ygl243wix7ak8zkbdcb9hcl2k2shswb";
};
useDune2 = true;
diff --git a/pkgs/development/ocaml-modules/mirage-crypto/rng-async.nix b/pkgs/development/ocaml-modules/mirage-crypto/rng-async.nix
new file mode 100644
index 000000000000..e8c8dd06eab5
--- /dev/null
+++ b/pkgs/development/ocaml-modules/mirage-crypto/rng-async.nix
@@ -0,0 +1,25 @@
+{ lib, buildDunePackage
+, mirage-crypto, mirage-crypto-rng
+, dune-configurator, async, logs
+}:
+
+buildDunePackage {
+ pname = "mirage-crypto-rng-async";
+
+ inherit (mirage-crypto) useDune2 version minimumOCamlVersion src;
+
+ nativeBuildInputs = [
+ dune-configurator
+ ];
+
+ propagatedBuildInputs = [
+ async
+ logs
+ mirage-crypto
+ mirage-crypto-rng
+ ];
+
+ meta = mirage-crypto.meta // {
+ description = "Feed the entropy source in an Async-friendly way";
+ };
+}
diff --git a/pkgs/development/ocaml-modules/mirage-crypto/rng-mirage.nix b/pkgs/development/ocaml-modules/mirage-crypto/rng-mirage.nix
index 473704d7ea22..5152d3c8ecde 100644
--- a/pkgs/development/ocaml-modules/mirage-crypto/rng-mirage.nix
+++ b/pkgs/development/ocaml-modules/mirage-crypto/rng-mirage.nix
@@ -1,5 +1,7 @@
{ buildDunePackage, mirage-crypto-rng, duration, cstruct, mirage-runtime
-, mirage-time, mirage-clock, mirage-unix, mirage-time-unix, mirage-clock-unix }:
+, mirage-time, mirage-clock, mirage-unix, mirage-time-unix, mirage-clock-unix
+, logs, lwt
+}:
buildDunePackage {
pname = "mirage-crypto-rng-mirage";
@@ -10,7 +12,7 @@ buildDunePackage {
checkInputs = [ mirage-unix mirage-clock-unix mirage-time-unix ];
propagatedBuildInputs = [ duration cstruct mirage-crypto-rng mirage-runtime
- mirage-time mirage-clock ];
+ mirage-time mirage-clock logs lwt ];
meta = mirage-crypto-rng.meta // {
description = "Entropy collection for a cryptographically secure PRNG";
diff --git a/pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix b/pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix
index 958c088cd6a2..5200c13d89fd 100644
--- a/pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix
+++ b/pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix
@@ -4,6 +4,8 @@ buildDunePackage rec {
pname = "ppx_tools_versioned";
version = "5.4.0";
+ useDune2 = true;
+
src = fetchFromGitHub {
owner = "ocaml-ppx";
repo = pname;
diff --git a/pkgs/development/ocaml-modules/trie/default.nix b/pkgs/development/ocaml-modules/trie/default.nix
new file mode 100644
index 000000000000..935f71a5e224
--- /dev/null
+++ b/pkgs/development/ocaml-modules/trie/default.nix
@@ -0,0 +1,23 @@
+{ lib, buildDunePackage, fetchFromGitHub }:
+
+buildDunePackage rec {
+ pname = "trie";
+ version = "1.0.0";
+
+ useDune2 = true;
+
+ src = fetchFromGitHub {
+ owner = "kandu";
+ repo = pname;
+ rev = version;
+ sha256 = "0s7p9swjqjsqddylmgid6cv263ggq7pmb734z4k84yfcrgb6kg4g";
+ };
+
+ meta = {
+ inherit (src.meta) homepage;
+ license = lib.licenses.mit;
+ description = "Strict impure trie tree";
+ maintainers = [ lib.maintainers.vbgl ];
+ };
+
+}