summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2021-01-21 10:24:35 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2021-01-21 10:30:13 +1000
commit8488ebab05929b1d65c12a9294661478f01a1a55 (patch)
treecd71625abbb9ade82749f2f43d5d22b24c7f8ae9 /pkgs/development/ocaml-modules
parent569987c1be8d42302a4238b3dc39d16ac70bdfb6 (diff)
ocamlPackages.*: use spaces for indentation
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/bos/default.nix34
-rw-r--r--pkgs/development/ocaml-modules/camomile/default.nix30
-rw-r--r--pkgs/development/ocaml-modules/cohttp/async.nix24
-rw-r--r--pkgs/development/ocaml-modules/cohttp/default.nix32
-rw-r--r--pkgs/development/ocaml-modules/cohttp/lwt-unix.nix10
-rw-r--r--pkgs/development/ocaml-modules/cohttp/lwt.nix8
-rw-r--r--pkgs/development/ocaml-modules/conduit/async.nix16
-rw-r--r--pkgs/development/ocaml-modules/conduit/lwt-unix.nix18
-rw-r--r--pkgs/development/ocaml-modules/conduit/lwt.nix14
-rw-r--r--pkgs/development/ocaml-modules/cstruct/lwt.nix6
-rw-r--r--pkgs/development/ocaml-modules/cstruct/ppx.nix8
-rw-r--r--pkgs/development/ocaml-modules/cstruct/sexp.nix11
-rw-r--r--pkgs/development/ocaml-modules/cstruct/unix.nix8
-rw-r--r--pkgs/development/ocaml-modules/csv/default.nix24
-rw-r--r--pkgs/development/ocaml-modules/decompress/default.nix34
-rw-r--r--pkgs/development/ocaml-modules/dolmen/default.nix38
-rw-r--r--pkgs/development/ocaml-modules/expat/default.nix44
-rw-r--r--pkgs/development/ocaml-modules/git-http/default.nix16
-rw-r--r--pkgs/development/ocaml-modules/git-unix/default.nix20
-rw-r--r--pkgs/development/ocaml-modules/git/default.nix40
-rw-r--r--pkgs/development/ocaml-modules/hmap/default.nix10
-rw-r--r--pkgs/development/ocaml-modules/inifiles/default.nix36
-rw-r--r--pkgs/development/ocaml-modules/inotify/default.nix74
-rw-r--r--pkgs/development/ocaml-modules/integers/default.nix24
-rw-r--r--pkgs/development/ocaml-modules/lwt_react/default.nix26
-rw-r--r--pkgs/development/ocaml-modules/num/default.nix42
-rw-r--r--pkgs/development/ocaml-modules/ocp-ocamlres/default.nix38
-rw-r--r--pkgs/development/ocaml-modules/ocplib-json-typed/default.nix32
-rw-r--r--pkgs/development/ocaml-modules/octavius/default.nix28
-rw-r--r--pkgs/development/ocaml-modules/opium/default.nix8
-rw-r--r--pkgs/development/ocaml-modules/ppx_derivers/default.nix28
-rw-r--r--pkgs/development/ocaml-modules/ppxfind/default.nix30
-rw-r--r--pkgs/development/ocaml-modules/rresult/default.nix30
-rw-r--r--pkgs/development/ocaml-modules/webbrowser/default.nix34
34 files changed, 437 insertions, 438 deletions
diff --git a/pkgs/development/ocaml-modules/bos/default.nix b/pkgs/development/ocaml-modules/bos/default.nix
index 84cee3d97cea..62438526d703 100644
--- a/pkgs/development/ocaml-modules/bos/default.nix
+++ b/pkgs/development/ocaml-modules/bos/default.nix
@@ -3,24 +3,24 @@
}:
stdenv.mkDerivation rec {
- name = "ocaml${ocaml.version}-bos-${version}";
- version = "0.2.0";
- src = fetchurl {
- url = "https://erratique.ch/software/bos/releases/bos-${version}.tbz";
- sha256 = "1s10iqx8rgnxr5n93lf4blwirjf8nlm272yg5sipr7lsr35v49wc";
- };
+ name = "ocaml${ocaml.version}-bos-${version}";
+ version = "0.2.0";
+ src = fetchurl {
+ url = "https://erratique.ch/software/bos/releases/bos-${version}.tbz";
+ sha256 = "1s10iqx8rgnxr5n93lf4blwirjf8nlm272yg5sipr7lsr35v49wc";
+ };
- nativeBuildInputs = [ ocaml findlib ocamlbuild ];
- buildInputs = [ findlib topkg ];
- propagatedBuildInputs = [ astring fmt fpath logs rresult ];
+ nativeBuildInputs = [ ocaml findlib ocamlbuild ];
+ buildInputs = [ findlib topkg ];
+ propagatedBuildInputs = [ astring fmt fpath logs rresult ];
- inherit (topkg) buildPhase installPhase;
+ inherit (topkg) buildPhase installPhase;
- meta = {
- description = "Basic OS interaction for OCaml";
- homepage = "https://erratique.ch/software/bos";
- license = lib.licenses.isc;
- maintainers = [ lib.maintainers.vbgl ];
- inherit (ocaml.meta) platforms;
- };
+ meta = {
+ description = "Basic OS interaction for OCaml";
+ homepage = "https://erratique.ch/software/bos";
+ license = lib.licenses.isc;
+ maintainers = [ lib.maintainers.vbgl ];
+ inherit (ocaml.meta) platforms;
+ };
}
diff --git a/pkgs/development/ocaml-modules/camomile/default.nix b/pkgs/development/ocaml-modules/camomile/default.nix
index 2b246d0f3eaf..6bae728cafac 100644
--- a/pkgs/development/ocaml-modules/camomile/default.nix
+++ b/pkgs/development/ocaml-modules/camomile/default.nix
@@ -2,23 +2,23 @@
buildDunePackage rec {
pname = "camomile";
- version = "1.0.2";
+ version = "1.0.2";
- src = fetchFromGitHub {
- owner = "yoriyuki";
- repo = pname;
- rev = version;
- sha256 = "00i910qjv6bpk0nkafp5fg97isqas0bwjf7m6rz11rsxilpalzad";
- };
+ src = fetchFromGitHub {
+ owner = "yoriyuki";
+ repo = pname;
+ rev = version;
+ sha256 = "00i910qjv6bpk0nkafp5fg97isqas0bwjf7m6rz11rsxilpalzad";
+ };
- buildInputs = [ cppo ];
+ buildInputs = [ cppo ];
- configurePhase = "ocaml configure.ml --share $out/share/camomile";
+ configurePhase = "ocaml configure.ml --share $out/share/camomile";
- meta = {
- inherit (src.meta) homepage;
- maintainers = [ lib.maintainers.vbgl ];
- license = lib.licenses.lgpl21;
- description = "A Unicode library for OCaml";
- };
+ meta = {
+ inherit (src.meta) homepage;
+ maintainers = [ lib.maintainers.vbgl ];
+ license = lib.licenses.lgpl21;
+ description = "A Unicode library for OCaml";
+ };
}
diff --git a/pkgs/development/ocaml-modules/cohttp/async.nix b/pkgs/development/ocaml-modules/cohttp/async.nix
index 974c3aa2f9c3..21e22533f1b2 100644
--- a/pkgs/development/ocaml-modules/cohttp/async.nix
+++ b/pkgs/development/ocaml-modules/cohttp/async.nix
@@ -2,21 +2,21 @@
, logs, magic-mime }:
if !lib.versionAtLeast cohttp.version "0.99" then
- cohttp
+ cohttp
else if !lib.versionAtLeast async.version "0.13" then
- throw "cohttp-async needs async-0.13 (hence OCaml >= 4.08)"
+ throw "cohttp-async needs async-0.13 (hence OCaml >= 4.08)"
else
- buildDunePackage {
- pname = "cohttp-async";
- useDune2 = true;
- inherit (cohttp) version src;
+ buildDunePackage {
+ pname = "cohttp-async";
+ useDune2 = true;
+ inherit (cohttp) version src;
- buildInputs = [ ppx_sexp_conv ];
+ buildInputs = [ ppx_sexp_conv ];
- propagatedBuildInputs = [ async cohttp conduit-async logs magic-mime uri ];
+ propagatedBuildInputs = [ async cohttp conduit-async logs magic-mime uri ];
- meta = cohttp.meta // {
- description = "CoHTTP implementation for the Async concurrency library";
- };
- }
+ meta = cohttp.meta // {
+ description = "CoHTTP implementation for the Async concurrency library";
+ };
+ }
diff --git a/pkgs/development/ocaml-modules/cohttp/default.nix b/pkgs/development/ocaml-modules/cohttp/default.nix
index 3fed7c55d452..e664d17f215e 100644
--- a/pkgs/development/ocaml-modules/cohttp/default.nix
+++ b/pkgs/development/ocaml-modules/cohttp/default.nix
@@ -4,26 +4,26 @@
}:
buildDunePackage rec {
- pname = "cohttp";
- version = "2.5.4";
+ pname = "cohttp";
+ version = "2.5.4";
- useDune2 = true;
+ useDune2 = true;
- minimumOCamlVersion = "4.04.1";
+ minimumOCamlVersion = "4.04.1";
- src = fetchurl {
- url = "https://github.com/mirage/ocaml-cohttp/releases/download/v${version}/cohttp-v${version}.tbz";
- sha256 = "1q04spmki5zis5p5m1vs77i3k7ijm134j62g61071vblwx25z17a";
- };
+ src = fetchurl {
+ url = "https://github.com/mirage/ocaml-cohttp/releases/download/v${version}/cohttp-v${version}.tbz";
+ sha256 = "1q04spmki5zis5p5m1vs77i3k7ijm134j62g61071vblwx25z17a";
+ };
- buildInputs = [ jsonm ppx_fields_conv ppx_sexp_conv ];
+ buildInputs = [ jsonm ppx_fields_conv ppx_sexp_conv ];
- propagatedBuildInputs = [ base64 fieldslib re stringext uri-sexp stdlib-shims ];
+ propagatedBuildInputs = [ base64 fieldslib re stringext uri-sexp stdlib-shims ];
- meta = {
- description = "HTTP(S) library for Lwt, Async and Mirage";
- license = lib.licenses.isc;
- maintainers = [ lib.maintainers.vbgl ];
- homepage = "https://github.com/mirage/ocaml-cohttp";
- };
+ meta = {
+ description = "HTTP(S) library for Lwt, Async and Mirage";
+ license = lib.licenses.isc;
+ maintainers = [ lib.maintainers.vbgl ];
+ homepage = "https://github.com/mirage/ocaml-cohttp";
+ };
}
diff --git a/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix b/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix
index 455a76ce94dd..845df2a3f542 100644
--- a/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix
+++ b/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix
@@ -8,12 +8,12 @@ then cohttp-lwt
else
buildDunePackage {
- pname = "cohttp-lwt-unix";
- inherit (cohttp-lwt) version src meta;
+ pname = "cohttp-lwt-unix";
+ inherit (cohttp-lwt) version src meta;
- useDune2 = true;
+ useDune2 = true;
- buildInputs = [ cmdliner ppx_sexp_conv ];
+ buildInputs = [ cmdliner ppx_sexp_conv ];
- propagatedBuildInputs = [ cohttp-lwt conduit-lwt-unix fmt magic-mime ];
+ propagatedBuildInputs = [ cohttp-lwt conduit-lwt-unix fmt magic-mime ];
}
diff --git a/pkgs/development/ocaml-modules/cohttp/lwt.nix b/pkgs/development/ocaml-modules/cohttp/lwt.nix
index 04f81e8e8df4..36831d946132 100644
--- a/pkgs/development/ocaml-modules/cohttp/lwt.nix
+++ b/pkgs/development/ocaml-modules/cohttp/lwt.nix
@@ -7,10 +7,10 @@ then throw "cohttp-lwt is not available for ppx_sexp_conv version ${ppx_sexp_con
else
buildDunePackage {
- pname = "cohttp-lwt";
- inherit (cohttp) version src useDune2 meta;
+ pname = "cohttp-lwt";
+ inherit (cohttp) version src useDune2 meta;
- buildInputs = [ uri ppx_sexp_conv ];
+ buildInputs = [ uri ppx_sexp_conv ];
- propagatedBuildInputs = [ cohttp ocaml_lwt logs ];
+ propagatedBuildInputs = [ cohttp ocaml_lwt logs ];
}
diff --git a/pkgs/development/ocaml-modules/conduit/async.nix b/pkgs/development/ocaml-modules/conduit/async.nix
index e289b5d711d5..c15ad0520fb2 100644
--- a/pkgs/development/ocaml-modules/conduit/async.nix
+++ b/pkgs/development/ocaml-modules/conduit/async.nix
@@ -5,15 +5,15 @@ then conduit
else
buildDunePackage {
- pname = "conduit-async";
- useDune2 = true;
- inherit (conduit) version src;
+ pname = "conduit-async";
+ useDune2 = true;
+ inherit (conduit) version src;
- buildInputs = [ ppx_sexp_conv ];
+ buildInputs = [ ppx_sexp_conv ];
- propagatedBuildInputs = [ async async_ssl conduit ];
+ propagatedBuildInputs = [ async async_ssl conduit ];
- meta = conduit.meta // {
- description = "A network connection establishment library for Async";
- };
+ meta = conduit.meta // {
+ description = "A network connection establishment library for Async";
+ };
}
diff --git a/pkgs/development/ocaml-modules/conduit/lwt-unix.nix b/pkgs/development/ocaml-modules/conduit/lwt-unix.nix
index 9f871a8ea9cd..ab6449b50a17 100644
--- a/pkgs/development/ocaml-modules/conduit/lwt-unix.nix
+++ b/pkgs/development/ocaml-modules/conduit/lwt-unix.nix
@@ -4,17 +4,17 @@
}:
buildDunePackage {
- pname = "conduit-lwt-unix";
- inherit (conduit-lwt) version src minimumOCamlVersion;
+ pname = "conduit-lwt-unix";
+ inherit (conduit-lwt) version src minimumOCamlVersion;
- useDune2 = true;
+ useDune2 = true;
- buildInputs = [ ppx_sexp_conv ];
+ buildInputs = [ ppx_sexp_conv ];
- propagatedBuildInputs =
- [ conduit-lwt ocaml_lwt uri ipaddr ipaddr-sexp tls lwt_ssl ];
+ propagatedBuildInputs =
+ [ conduit-lwt ocaml_lwt uri ipaddr ipaddr-sexp tls lwt_ssl ];
- meta = conduit-lwt.meta // {
- description = "A network connection establishment library for Lwt_unix";
- };
+ meta = conduit-lwt.meta // {
+ description = "A network connection establishment library for Lwt_unix";
+ };
}
diff --git a/pkgs/development/ocaml-modules/conduit/lwt.nix b/pkgs/development/ocaml-modules/conduit/lwt.nix
index 512aa60bb66d..2f18027a67b0 100644
--- a/pkgs/development/ocaml-modules/conduit/lwt.nix
+++ b/pkgs/development/ocaml-modules/conduit/lwt.nix
@@ -1,14 +1,14 @@
{ buildDunePackage, ppx_sexp_conv, conduit, ocaml_lwt, sexplib }:
buildDunePackage {
- pname = "conduit-lwt";
- inherit (conduit) version src useDune2 minimumOCamlVersion;
+ pname = "conduit-lwt";
+ inherit (conduit) version src useDune2 minimumOCamlVersion;
- buildInputs = [ ppx_sexp_conv ];
+ buildInputs = [ ppx_sexp_conv ];
- propagatedBuildInputs = [ conduit ocaml_lwt sexplib ];
+ propagatedBuildInputs = [ conduit ocaml_lwt sexplib ];
- meta = conduit.meta // {
- description = "A network connection establishment library for Lwt";
- };
+ meta = conduit.meta // {
+ description = "A network connection establishment library for Lwt";
+ };
}
diff --git a/pkgs/development/ocaml-modules/cstruct/lwt.nix b/pkgs/development/ocaml-modules/cstruct/lwt.nix
index f340bfcda25e..113df1e89b5c 100644
--- a/pkgs/development/ocaml-modules/cstruct/lwt.nix
+++ b/pkgs/development/ocaml-modules/cstruct/lwt.nix
@@ -5,10 +5,10 @@ then cstruct
else
buildDunePackage {
- pname = "cstruct-lwt";
- inherit (cstruct) version src useDune2 meta;
+ pname = "cstruct-lwt";
+ inherit (cstruct) version src useDune2 meta;
minimumOCamlVersion = "4.02";
- propagatedBuildInputs = [ cstruct lwt ];
+ propagatedBuildInputs = [ cstruct lwt ];
}
diff --git a/pkgs/development/ocaml-modules/cstruct/ppx.nix b/pkgs/development/ocaml-modules/cstruct/ppx.nix
index feb8feac6b68..44343812090d 100644
--- a/pkgs/development/ocaml-modules/cstruct/ppx.nix
+++ b/pkgs/development/ocaml-modules/cstruct/ppx.nix
@@ -5,10 +5,10 @@ then cstruct
else
buildDunePackage {
- pname = "ppx_cstruct";
- inherit (cstruct) version src useDune2 meta;
+ pname = "ppx_cstruct";
+ inherit (cstruct) version src useDune2 meta;
- minimumOCamlVersion = "4.03";
+ minimumOCamlVersion = "4.03";
- propagatedBuildInputs = [ cstruct ppx_tools_versioned ppxlib sexplib ];
+ propagatedBuildInputs = [ cstruct ppx_tools_versioned ppxlib sexplib ];
}
diff --git a/pkgs/development/ocaml-modules/cstruct/sexp.nix b/pkgs/development/ocaml-modules/cstruct/sexp.nix
index 04bb10d6f75e..742cb6522ebf 100644
--- a/pkgs/development/ocaml-modules/cstruct/sexp.nix
+++ b/pkgs/development/ocaml-modules/cstruct/sexp.nix
@@ -5,12 +5,11 @@ then cstruct
else
buildDunePackage rec {
- pname = "cstruct-sexp";
- inherit (cstruct) version src useDune2 meta;
+ pname = "cstruct-sexp";
+ inherit (cstruct) version src useDune2 meta;
- doCheck = lib.versionAtLeast ocaml.version "4.03";
- checkInputs = lib.optional doCheck alcotest;
+ doCheck = lib.versionAtLeast ocaml.version "4.03";
+ checkInputs = lib.optional doCheck alcotest;
- propagatedBuildInputs = [ cstruct sexplib ];
+ propagatedBuildInputs = [ cstruct sexplib ];
}
-
diff --git a/pkgs/development/ocaml-modules/cstruct/unix.nix b/pkgs/development/ocaml-modules/cstruct/unix.nix
index b7e0df0185c1..1ea27bb04de4 100644
--- a/pkgs/development/ocaml-modules/cstruct/unix.nix
+++ b/pkgs/development/ocaml-modules/cstruct/unix.nix
@@ -5,10 +5,10 @@ then cstruct
else
buildDunePackage {
- pname = "cstruct-unix";
- inherit (cstruct) version src useDune2 meta;
+ pname = "cstruct-unix";
+ inherit (cstruct) version src useDune2 meta;
- minimumOCamlVersion = "4.06";
+ minimumOCamlVersion = "4.06";
- propagatedBuildInputs = [ cstruct ];
+ propagatedBuildInputs = [ cstruct ];
}
diff --git a/pkgs/development/ocaml-modules/csv/default.nix b/pkgs/development/ocaml-modules/csv/default.nix
index 8cf2918989e0..595624531759 100644
--- a/pkgs/development/ocaml-modules/csv/default.nix
+++ b/pkgs/development/ocaml-modules/csv/default.nix
@@ -2,19 +2,19 @@
buildDunePackage rec {
pname = "csv";
- version = "2.4";
+ version = "2.4";
- useDune2 = true;
+ useDune2 = true;
- src = fetchurl {
- url = "https://github.com/Chris00/ocaml-${pname}/releases/download/${version}/csv-${version}.tbz";
- sha256 = "13m9n8mdss6jfbiw7d5bybxn4n85vmg4zw7dc968qrgjfy0w9zhk";
- };
+ src = fetchurl {
+ url = "https://github.com/Chris00/ocaml-${pname}/releases/download/${version}/csv-${version}.tbz";
+ sha256 = "13m9n8mdss6jfbiw7d5bybxn4n85vmg4zw7dc968qrgjfy0w9zhk";
+ };
- meta = {
- description = "A pure OCaml library to read and write CSV files";
- license = lib.licenses.lgpl21;
- maintainers = [ lib.maintainers.vbgl ];
- homepage = "https://github.com/Chris00/ocaml-csv";
- };
+ meta = {
+ description = "A pure OCaml library to read and write CSV files";
+ license = lib.licenses.lgpl21;
+ maintainers = [ lib.maintainers.vbgl ];
+ homepage = "https://github.com/Chris00/ocaml-csv";
+ };
}
diff --git a/pkgs/development/ocaml-modules/decompress/default.nix b/pkgs/development/ocaml-modules/decompress/default.nix
index a3bf3456ed0d..067fac33d455 100644
--- a/pkgs/development/ocaml-modules/decompress/default.nix
+++ b/pkgs/development/ocaml-modules/decompress/default.nix
@@ -4,25 +4,25 @@
}:
buildDunePackage rec {
- version = "0.9.0";
- pname = "decompress";
+ version = "0.9.0";
+ pname = "decompress";
- useDune2 = true;
+ useDune2 = true;
- src = fetchurl {
- url = "https://github.com/mirage/decompress/releases/download/v${version}/decompress-v${version}.tbz";
- sha256 = "0fryhcvv96vfca51c7kqdn3n3canqsbbvfbi75ya6lca4lmpipbh";
- };
+ src = fetchurl {
+ url = "https://github.com/mirage/decompress/releases/download/v${version}/decompress-v${version}.tbz";
+ sha256 = "0fryhcvv96vfca51c7kqdn3n3canqsbbvfbi75ya6lca4lmpipbh";
+ };
- buildInputs = [ cmdliner ];
- propagatedBuildInputs = [ checkseum ];
- checkInputs = lib.optionals doCheck [ alcotest bos camlzip mmap re ];
- doCheck = true;
+ buildInputs = [ cmdliner ];
+ propagatedBuildInputs = [ checkseum ];
+ checkInputs = lib.optionals doCheck [ alcotest bos camlzip mmap re ];
+ doCheck = true;
- meta = {
- description = "Pure OCaml implementation of Zlib";
- license = lib.licenses.mit;
- maintainers = [ lib.maintainers.vbgl ];
- homepage = "https://github.com/mirage/decompress";
- };
+ meta = {
+ description = "Pure OCaml implementation of Zlib";
+ license = lib.licenses.mit;
+ maintainers = [ lib.maintainers.vbgl ];
+ homepage = "https://github.com/mirage/decompress";
+ };
}
diff --git a/pkgs/development/ocaml-modules/dolmen/default.nix b/pkgs/development/ocaml-modules/dolmen/default.nix
index d4a47abcafa4..a1a73bfe2188 100644
--- a/pkgs/development/ocaml-modules/dolmen/default.nix
+++ b/pkgs/development/ocaml-modules/dolmen/default.nix
@@ -1,27 +1,27 @@
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, menhir }:
stdenv.mkDerivation rec {
- name = "ocaml${ocaml.version}-dolmen-${version}";
- version = "0.2";
- src = fetchFromGitHub {
- owner = "Gbury";
- repo = "dolmen";
- rev = "v${version}";
- sha256 = "1b9mf8p6mic0n76acx8x82hhgm2n40sdv0jri95im65l52223saf";
- };
+ name = "ocaml${ocaml.version}-dolmen-${version}";
+ version = "0.2";
+ src = fetchFromGitHub {
+ owner = "Gbury";
+ repo = "dolmen";
+ rev = "v${version}";
+ sha256 = "1b9mf8p6mic0n76acx8x82hhgm2n40sdv0jri95im65l52223saf";
+ };
- buildInputs = [ ocaml findlib ocamlbuild ];
- propagatedBuildInputs = [ menhir ];
+ buildInputs = [ ocaml findlib ocamlbuild ];
+ propagatedBuildInputs = [ menhir ];
- makeFlags = [ "-C" "src" ];
+ makeFlags = [ "-C" "src" ];
- createFindlibDestdir = true;
+ createFindlibDestdir = true;
- meta = {
- description = "An OCaml library providing clean and flexible parsers for input languages";
- license = lib.licenses.bsd2;
- maintainers = [ lib.maintainers.vbgl ];
- inherit (src.meta) homepage;
- inherit (ocaml.meta) platforms;
- };
+ meta = {
+ description = "An OCaml library providing clean and flexible parsers for input languages";
+ license = lib.licenses.bsd2;
+ maintainers = [ lib.maintainers.vbgl ];
+ inherit (src.meta) homepage;
+ inherit (ocaml.meta) platforms;
+ };
}
diff --git a/pkgs/development/ocaml-modules/expat/default.nix b/pkgs/development/ocaml-modules/expat/default.nix
index 9675fa881510..1812473e78bf 100644
--- a/pkgs/development/ocaml-modules/expat/default.nix
+++ b/pkgs/development/ocaml-modules/expat/default.nix
@@ -1,32 +1,32 @@
{ stdenv, lib, fetchFromGitHub, expat, ocaml, findlib, ounit }:
stdenv.mkDerivation rec {
- name = "ocaml${ocaml.version}-expat-${version}";
- version = "1.1.0";
+ name = "ocaml${ocaml.version}-expat-${version}";
+ version = "1.1.0";
- src = fetchFromGitHub {
- owner = "whitequark";
- repo = "ocaml-expat";
- rev = "v${version}";
- sha256 = "07wm9663z744ya6z2lhiz5hbmc76kkipg04j9vw9dqpd1y1f2x3q";
- };
+ src = fetchFromGitHub {
+ owner = "whitequark";
+ repo = "ocaml-expat";
+ rev = "v${version}";
+ sha256 = "07wm9663z744ya6z2lhiz5hbmc76kkipg04j9vw9dqpd1y1f2x3q";
+ };
- prePatch = ''
- substituteInPlace Makefile --replace "gcc" "\$(CC)"
- '';
+ prePatch = ''
+ substituteInPlace Makefile --replace "gcc" "\$(CC)"
+ '';
- buildInputs = [ ocaml findlib expat ounit ];
+ buildInputs = [ ocaml findlib expat ounit ];
- doCheck = !lib.versionAtLeast ocaml.version "4.06";
- checkTarget = "testall";
+ doCheck = !lib.versionAtLeast ocaml.version "4.06";
+ checkTarget = "testall";
- createFindlibDestdir = true;
+ createFindlibDestdir = true;
- meta = {
- description = "OCaml wrapper for the Expat XML parsing library";
- license = lib.licenses.mit;
- maintainers = [ lib.maintainers.vbgl ];
- inherit (src.meta) homepage;
- inherit (ocaml.meta) platforms;
- };
+ meta = {
+ description = "OCaml wrapper for the Expat XML parsing library";
+ license = lib.licenses.mit;
+ maintainers = [ lib.maintainers.vbgl ];
+ inherit (src.meta) homepage;
+ inherit (ocaml.meta) platforms;
+ };
}
diff --git a/pkgs/development/ocaml-modules/git-http/default.nix b/pkgs/development/ocaml-modules/git-http/default.nix
index 3b127c650063..54bd5c2da233 100644
--- a/pkgs/development/ocaml-modules/git-http/default.nix
+++ b/pkgs/development/ocaml-modules/git-http/default.nix
@@ -1,15 +1,15 @@
{ buildDunePackage, git, cohttp, cohttp-lwt }:
buildDunePackage {
- pname = "git-http";
- inherit (git) version src minimumOCamlVersion;
+ pname = "git-http";
+ inherit (git) version src minimumOCamlVersion;
- useDune2 = true;
+ useDune2 = true;
- propagatedBuildInputs = [ git cohttp cohttp-lwt ];
+ propagatedBuildInputs = [ git cohttp cohttp-lwt ];
- meta = {
- description = "Client implementation of the “Smart” HTTP Git protocol in pure OCaml";
- inherit (git.meta) homepage license maintainers;
- };
+ meta = {
+ description = "Client implementation of the “Smart” HTTP Git protocol in pure OCaml";
+ inherit (git.meta) homepage license maintainers;
+ };
}
diff --git a/pkgs/development/ocaml-modules/git-unix/default.nix b/pkgs/development/ocaml-modules/git-unix/default.nix
index 0633b8af8f05..6ee6ef21c15e 100644
--- a/pkgs/development/ocaml-modules/git-unix/default.nix
+++ b/pkgs/development/ocaml-modules/git-unix/default.nix
@@ -4,17 +4,17 @@
}:
buildDunePackage {
- pname = "git-unix";
- inherit (git-http) version src minimumOCamlVersion;
+ pname = "git-unix";
+ inherit (git-http) version src minimumOCamlVersion;
- useDune2 = true;
+ useDune2 = true;
- propagatedBuildInputs = [ mmap cmdliner git-http cohttp cohttp-lwt-unix mtime ];
- checkInputs = [ alcotest mirage-crypto-rng tls io-page git-binary ];
- doCheck = !stdenv.isAarch64;
+ propagatedBuildInputs = [ mmap cmdliner git-http cohttp cohttp-lwt-unix mtime ];
+ checkInputs = [ alcotest mirage-crypto-rng tls io-page git-binary ];
+ doCheck = !stdenv.isAarch64;
- meta = {
- description = "Unix backend for the Git protocol(s)";
- inherit (git-http.meta) homepage license maintainers;
- };
+ meta = {
+ description = "Unix backend for the Git protocol(s)";
+ inherit (git-http.meta) homepage license maintainers;
+ };
}
diff --git a/pkgs/development/ocaml-modules/git/default.nix b/pkgs/development/ocaml-modules/git/default.nix
index ba2372090d8c..f5cb452f1a91 100644
--- a/pkgs/development/ocaml-modules/git/default.nix
+++ b/pkgs/development/ocaml-modules/git/default.nix
@@ -6,28 +6,28 @@
}:
buildDunePackage rec {
- pname = "git";
- version = "2.1.3";
+ pname = "git";
+ version = "2.1.3";
- minimumOCamlVersion = "4.07";
- useDune2 = true;
+ minimumOCamlVersion = "4.07";
+ useDune2 = true;
- src = fetchurl {
- url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz";
- sha256 = "1ppllv65vrkfrmx46aiq5879isffcjmg92z9rv2kh92a83h4lqax";
- };
+ src = fetchurl {
+ url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz";
+ sha256 = "1ppllv65vrkfrmx46aiq5879isffcjmg92z9rv2kh92a83h4lqax";
+ };
- propagatedBuildInputs = [
- angstrom astring checkseum cstruct decompress digestif encore duff fmt fpath
- hex ke logs lru ocaml_lwt ocamlgraph ocplib-endian uri rresult stdlib-shims
- ];
- checkInputs = [ alcotest mtime mirage-crypto-rng tls git-binary ];
- doCheck = !stdenv.isAarch64;
+ propagatedBuildInputs = [
+ angstro