ocamlPackages.*: use spaces for indentation

This commit is contained in:
zowoq 2021-01-21 10:24:35 +10:00
parent 569987c1be
commit 8488ebab05
34 changed files with 429 additions and 430 deletions

View File

@ -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;
};
}

View File

@ -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";
};
}

View File

@ -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";
};
}

View File

@ -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";
};
}

View File

@ -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 ];
}

View File

@ -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 ];
}

View File

@ -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";
};
}

View File

@ -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";
};
}

View File

@ -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";
};
}

View File

@ -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 ];
}

View File

@ -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 ];
}

View File

@ -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 ];
}

View File

@ -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 ];
}

View File

@ -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";
};
}

View File

@ -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";
};
}

View File

@ -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;
};
}

View File

@ -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;
};
}

View File

@ -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;
};
}

View File

@ -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;
};
}

View File

@ -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 = [
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;
meta = {
description = "Git format and protocol in pure OCaml";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
homepage = "https://github.com/mirage/ocaml-git";
};
meta = {
description = "Git format and protocol in pure OCaml";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
homepage = "https://github.com/mirage/ocaml-git";
};
}

View File

@ -13,7 +13,7 @@ in
assert lib.versionOlder minimumSupportedOcamlVersion ocaml.version;
stdenv.mkDerivation rec {
pname = "hmap";
pname = "hmap";
version = "0.8.1";
name = "ocaml${ocaml.version}-${pname}-${version}";
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
sha256 = "10xyjy4ab87z7jnghy0wnla9wrmazgyhdwhr4hdmxxdn28dxn03a";
};
buildInputs = [ ocaml ocamlbuild findlib topkg ];
buildInputs = [ ocaml ocamlbuild findlib topkg ];
inherit (topkg) installPhase;
@ -33,9 +33,9 @@ stdenv.mkDerivation rec {
checkPhase = "${topkg.run} test";
meta = {
description = "Heterogeneous value maps for OCaml";
description = "Heterogeneous value maps for OCaml";
homepage = "https://erratique.ch/software/hmap";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.pmahoney ];
license = lib.licenses.isc;
maintainers = [ lib.maintainers.pmahoney ];
};
}

View File

@ -1,28 +1,28 @@
{ stdenv, lib, fetchurl, fetchpatch, ocaml, findlib, ocaml_pcre }:
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-inifiles-1.2";
name = "ocaml${ocaml.version}-inifiles-1.2";
src = fetchurl {
url = "http://archive.ubuntu.com/ubuntu/pool/universe/o/ocaml-inifiles/ocaml-inifiles_1.2.orig.tar.gz";
sha256 = "0jhzgiypmh6hwsv1zpiq77fi0cvcmwbiy5x0yg7mz6p3dh1dmkns";
};
src = fetchurl {
url = "http://archive.ubuntu.com/ubuntu/pool/universe/o/ocaml-inifiles/ocaml-inifiles_1.2.orig.tar.gz";
sha256 = "0jhzgiypmh6hwsv1zpiq77fi0cvcmwbiy5x0yg7mz6p3dh1dmkns";
};
patches = [ (fetchpatch {
url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/ocaml-inifiles/ocaml-inifiles.1.2/files/ocaml-inifiles.diff";
sha256 = "037kk3172s187w8vwsykdxlpklxzc7m7np57sapk499d8adzdgwn";
})];
patches = [ (fetchpatch {
url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/ocaml-inifiles/ocaml-inifiles.1.2/files/ocaml-inifiles.diff";
sha256 = "037kk3172s187w8vwsykdxlpklxzc7m7np57sapk499d8adzdgwn";
})];
buildInputs = [ ocaml findlib ];
propagatedBuildInputs = [ ocaml_pcre ];
buildInputs = [ ocaml findlib ];
propagatedBuildInputs = [ ocaml_pcre ];
buildFlags = [ "all" "opt" ];
buildFlags = [ "all" "opt" ];
createFindlibDestdir = true;
createFindlibDestdir = true;
meta = {
description = "A small OCaml library to read and write .ini files";
license = lib.licenses.lgpl21Plus;
inherit (ocaml.meta) platforms;
};
meta = {
description = "A small OCaml library to read and write .ini files";
license = lib.licenses.lgpl21Plus;
inherit (ocaml.meta) platforms;
};
}

View File

@ -4,41 +4,41 @@
}:
stdenv.mkDerivation rec {
version = "2.3";
name = "ocaml${ocaml.version}-inotify-${version}";
version = "2.3";
name = "ocaml${ocaml.version}-inotify-${version}";
src = fetchFromGitHub {
owner = "whitequark";
repo = "ocaml-inotify";
rev = "v${version}";
sha256 = "1s6vmqpx19hxzsi30jvp3h7p56rqnxfhfddpcls4nz8sqca1cz5y";
};
src = fetchFromGitHub {
owner = "whitequark";
repo = "ocaml-inotify";
rev = "v${version}";
sha256 = "1s6vmqpx19hxzsi30jvp3h7p56rqnxfhfddpcls4nz8sqca1cz5y";
};
patches = [ (fetchpatch {
url = "https://github.com/whitequark/ocaml-inotify/commit/716c8002cc1652f58eb0c400ae92e04003cba8c9.patch";
sha256 = "04lfxrrsmk2mc704kaln8jqx93jc4bkxhijmfy2d4cmk1cim7r6k";
}) ];
patches = [ (fetchpatch {
url = "https://github.com/whitequark/ocaml-inotify/commit/716c8002cc1652f58eb0c400ae92e04003cba8c9.patch";
sha256 = "04lfxrrsmk2mc704kaln8jqx93jc4bkxhijmfy2d4cmk1cim7r6k";
}) ];
buildInputs = [ ocaml findlib ocamlbuild ocaml_lwt ];
checkInputs = [ ounit fileutils ];
buildInputs = [ ocaml findlib ocamlbuild ocaml_lwt ];
checkInputs = [ ounit fileutils ];
configureFlags = [ "--enable-lwt"
(lib.optionalString doCheck "--enable-tests") ];
configureFlags = [ "--enable-lwt"
(lib.optionalString doCheck "--enable-tests") ];
postConfigure = lib.optionalString doCheck ''
echo '<lib_test/test_inotify_lwt.*>: pkg_threads' | tee -a _tags
'';
postConfigure = lib.optionalString doCheck ''
echo '<lib_test/test_inotify_lwt.*>: pkg_threads' | tee -a _tags
'';
doCheck = true;
checkTarget = "test";
doCheck = true;
checkTarget = "test";
createFindlibDestdir = true;
createFindlibDestdir = true;
meta = {
description = "Bindings for Linuxs filesystem monitoring interface, inotify";
license = lib.licenses.lgpl21;
maintainers = [ lib.maintainers.vbgl ];
inherit (src.meta) homepage;
platforms = lib.platforms.linux;
};
meta = {
description = "Bindings for Linuxs filesystem monitoring interface, inotify";
license = lib.licenses.lgpl21;
maintainers = [ lib.maintainers.vbgl ];
inherit (src.meta) homepage;
platforms = lib.platforms.linux;
};
}

View File

@ -1,18 +1,18 @@
{ lib, fetchzip, buildDunePackage }:
buildDunePackage rec {
pname = "integers";
version = "0.4.0";
pname = "integers";
version = "0.4.0";
src = fetchzip {
url = "https://github.com/ocamllabs/ocaml-integers/archive/${version}.tar.gz";
sha256 = "0yp3ab0ph7mp5741g7333x4nx8djjvxzpnv3zvsndyzcycspn9dd";
};
src = fetchzip {
url = "https://github.com/ocamllabs/ocaml-integers/archive/${version}.tar.gz";
sha256 = "0yp3ab0ph7mp5741g7333x4nx8djjvxzpnv3zvsndyzcycspn9dd";
};
meta = {
description = "Various signed and unsigned integer types for OCaml";
license = lib.licenses.mit;
homepage = "https://github.com/ocamllabs/ocaml-integers";
maintainers = [ lib.maintainers.vbgl ];
};
meta = {
description = "Various signed and unsigned integer types for OCaml";
license = lib.licenses.mit;
homepage = "https://github.com/ocamllabs/ocaml-integers";
maintainers = [ lib.maintainers.vbgl ];
};
}

View File

@ -1,22 +1,22 @@
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, lwt, react }:
stdenv.mkDerivation rec {
version = "1.0.1";
name = "ocaml${ocaml.version}-lwt_react-${version}";
src = fetchzip {
url = "https://github.com/ocsigen/lwt/releases/download/3.0.0/lwt_react-1.0.1.tar.gz";
sha256 = "1bbz7brvdskf4angzn3q2s2s6qdnx7x8m8syayysh23gwv4c7v31";
};
version = "1.0.1";
name = "ocaml${ocaml.version}-lwt_react-${version}";
src = fetchzip {
url = "https://github.com/ocsigen/lwt/releases/download/3.0.0/lwt_react-1.0.1.tar.gz";
sha256 = "1bbz7brvdskf4angzn3q2s2s6qdnx7x8m8syayysh23gwv4c7v31";
};
buildInputs = [ ocaml findlib ocamlbuild ];
buildInputs = [ ocaml findlib ocamlbuild ];
propagatedBuildInputs = [ lwt react ];
propagatedBuildInputs = [ lwt react ];
createFindlibDestdir = true;
createFindlibDestdir = true;
meta = {
description = "Helpers for using React with Lwt";
inherit (lwt.meta) homepage license maintainers;
meta = {
description = "Helpers for using React with Lwt";
inherit (lwt.meta) homepage license maintainers;
inherit (ocaml.meta) platforms;
};
};
}

View File

@ -1,31 +1,31 @@
{ stdenv, lib, fetchFromGitHub, fetchpatch, ocaml, findlib, withStatic ? false }:
stdenv.mkDerivation rec {
version = "1.1";
name = "ocaml${ocaml.version}-num-${version}";
src = fetchFromGitHub {
owner = "ocaml";
repo = "num";
rev = "v${version}";
sha256 = "0a4mhxgs5hi81d227aygjx35696314swas0vzy3ig809jb7zq4h0";
};
version = "1.1";
name = "ocaml${ocaml.version}-num-${version}";
src = fetchFromGitHub {
owner = "ocaml";
repo = "num";
rev = "v${version}";
sha256 = "0a4mhxgs5hi81d227aygjx35696314swas0vzy3ig809jb7zq4h0";
};
patches = [ (fetchpatch {
url = "https://github.com/ocaml/num/commit/6d4c6d476c061298e6385e8a0864f083194b9307.patch";
sha256 = "18zlvb5n327q8y3c52js5dvyy29ssld1l53jqng8m9w1k24ypi0b";
})
] ++ lib.optional withStatic ./enable-static.patch;
patches = [ (fetchpatch {
url = "https://github.com/ocaml/num/commit/6d4c6d476c061298e6385e8a0864f083194b9307.patch";
sha256 = "18zlvb5n327q8y3c52js5dvyy29ssld1l53jqng8m9w1k24ypi0b";
})
] ++ lib.optional withStatic ./enable-static.patch;
nativeBuildInputs = [ ocaml findlib ];
nativeBuildInputs = [ ocaml findlib ];
buildInputs = [ ocaml findlib ];
createFindlibDestdir = true;
createFindlibDestdir = true;
meta = {
description = "Legacy Num library for arbitrary-precision integer and rational arithmetic";
license = lib.licenses.lgpl21;
inherit (ocaml.meta) platforms;
inherit (src.meta) homepage;
};
meta = {
description = "Legacy Num library for arbitrary-precision integer and rational arithmetic";
license = lib.licenses.lgpl21;
inherit (ocaml.meta) platforms;
inherit (src.meta) homepage;
};
}

View File

@ -5,26 +5,26 @@ then throw "ocp-ocamlres is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-ocp-ocamlres-${version}";
version = "0.4";
src = fetchFromGitHub {
owner = "OCamlPro";
repo = "ocp-ocamlres";
rev = "v${version}";
sha256 = "0smfwrj8qhzknhzawygxi0vgl2af4vyi652fkma59rzjpvscqrnn";
};
name = "ocaml${ocaml.version}-ocp-ocamlres-${version}";
version = "0.4";
src = fetchFromGitHub {
owner = "OCamlPro";
repo = "ocp-ocamlres";
rev = "v${version}";
sha256 = "0smfwrj8qhzknhzawygxi0vgl2af4vyi652fkma59rzjpvscqrnn";
};
buildInputs = [ ocaml findlib astring pprint ];
createFindlibDestdir = true;
buildInputs = [ ocaml findlib astring pprint ];
createFindlibDestdir = true;
installFlags = [ "BINDIR=$(out)/bin" ];
preInstall = "mkdir -p $out/bin";
installFlags = [ "BINDIR=$(out)/bin" ];
preInstall = "mkdir -p $out/bin";
meta = {
description = "A simple tool and library to embed files and directories inside OCaml executables";
license = lib.licenses.lgpl3Plus;
homepage = "https://www.typerex.org/ocp-ocamlres.html";
maintainers = [ lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
meta = {
description = "A simple tool and library to embed files and directories inside OCaml executables";
license = lib.licenses.lgpl3Plus;
homepage = "https://www.typerex.org/ocp-ocamlres.html";
maintainers = [ lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}

View File

@ -1,22 +1,22 @@
{ lib, buildDunePackage, fetchFromGitHub, uri }:
buildDunePackage rec {
pname = "ocplib-json-typed";
version = "0.7.1";
useDune2 = true;
src = fetchFromGitHub {
owner = "OCamlPro";
repo = "ocplib-json-typed";
rev = "v${version}";
sha256 = "1gv0vqqy9lh7isaqg54b3lam2sh7nfjjazi6x7zn6bh5f77g1p5q";
};
pname = "ocplib-json-typed";
version = "0.7.1";
useDune2 = true;
src = fetchFromGitHub {
owner = "OCamlPro";
repo = "ocplib-json-typed";
rev = "v${version}";
sha256 = "1gv0vqqy9lh7isaqg54b3lam2sh7nfjjazi6x7zn6bh5f77g1p5q";
};
propagatedBuildInputs = [ uri ];
propagatedBuildInputs = [ uri ];
meta = {
description = "A collection of type-aware JSON utilities for OCaml";
license = lib.licenses.lgpl21;
maintainers = [ lib.maintainers.vbgl ];
inherit (src.meta) homepage;
};
meta = {
description = "A collection of type-aware JSON utilities for OCaml";
license = lib.licenses.lgpl21;
maintainers = [ lib.maintainers.vbgl ];
inherit (src.meta) homepage;
};
}

View File

@ -4,21 +4,21 @@ if !lib.versionAtLeast ocaml.version "4.03"
then throw "octavius is not available for OCaml ${ocaml.version}" else
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-octavius-0.2.0";
src = fetchurl {
url = "https://github.com/ocaml-doc/octavius/releases/download/v0.2.0/octavius-0.2.0.tbz";
sha256 = "02milzzlr4xk5aymg2fjz27f528d5pyscqvld3q0dm41zcpkz5ml";
};
name = "ocaml${ocaml.version}-octavius-0.2.0";
src = fetchurl {
url = "https://github.com/ocaml-doc/octavius/releases/download/v0.2.0/octavius-0.2.0.tbz";
sha256 = "02milzzlr4xk5aymg2fjz27f528d5pyscqvld3q0dm41zcpkz5ml";
};
buildInputs = [ ocaml findlib ocamlbuild topkg ];
buildInputs = [ ocaml findlib ocamlbuild topkg ];
inherit (topkg) buildPhase installPhase;
inherit (topkg) buildPhase installPhase;
meta = {
description = "Ocamldoc comment syntax parser";
homepage = "https://github.com/ocaml-doc/octavius";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
meta = {
description = "Ocamldoc comment syntax parser";
homepage = "https://github.com/ocaml-doc/octavius";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}

View File

@ -14,19 +14,19 @@
}:
buildDunePackage {
pname = "opium";
inherit (opium_kernel) version src meta minimumOCamlVersion;
pname = "opium";
inherit (opium_kernel) version src meta minimumOCamlVersion;
useDune2 = true;
doCheck = true;
buildInputs = [
buildInputs = [
ppx_sexp_conv ppx_fields_conv
alcotest
];
propagatedBuildInputs = [
propagatedBuildInputs = [
opium_kernel cmdliner cohttp-lwt-unix magic-mime logs stringext
];
}

View File

@ -1,22 +1,22 @@
{ lib, fetchFromGitHub, buildDunePackage }:
buildDunePackage rec {
pname = "ppx_derivers";
version = "1.2.1";
pname = "ppx_derivers";
version = "1.2.1";
minimumOCamlVersion = "4.02";
src = fetchFromGitHub {
owner = "diml";
repo = pname;
rev = version;
sha256 = "0yqvqw58hbx1a61wcpbnl9j30n495k23qmyy2xwczqs63mn2nkpn";
};
src = fetchFromGitHub {
owner = "diml";
repo = pname;
rev = version;
sha256 = "0yqvqw58hbx1a61wcpbnl9j30n495k23qmyy2xwczqs63mn2nkpn";
};
meta = {
description = "Shared [@@deriving] plugin registry";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.vbgl ];
inherit (src.meta) homepage;
};
meta = {
description = "Shared [@@deriving] plugin registry";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.vbgl ];
inherit (src.meta) homepage;
};
}

View File

@ -1,27 +1,27 @@
{ stdenv, lib, buildDunePackage, fetchurl, ocaml, ocaml-migrate-parsetree }:
buildDunePackage (rec {
pname = "ppxfind";
version = "1.4";
src = fetchurl {
url = "https://github.com/diml/ppxfind/releases/download/${version}/ppxfind-${version}.tbz";
sha256 = "0wa9vcrc26kirc2cqqs6kmarbi8gqy3dgdfiv9y7nzsgy1liqacq";
};
pname = "ppxfind";
version = "1.4";
src = fetchurl {
url = "https://github.com/diml/ppxfind/releases/download/${version}/ppxfind-${version}.tbz";
sha256 = "0wa9vcrc26kirc2cqqs6kmarbi8gqy3dgdfiv9y7nzsgy1liqacq";
};
minimumOCamlVersion = "4.03";
useDune2 = true;
minimumOCamlVersion = "4.03";
useDune2 = true;
buildInputs = [ ocaml-migrate-parsetree ];
buildInputs = [ ocaml-migrate-parsetree ];
# Don't run the native `strip' when cross-compiling.
dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
meta = {
homepage = "https://github.com/diml/ppxfind";
description = "ocamlfind ppx tool";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.vbgl ];
};
meta = {
homepage = "https://github.com/diml/ppxfind";
description = "ocamlfind ppx tool";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.vbgl ];
};
} // (
if lib.versions.majorMinor ocaml.version == "4.04" then {
dontStrip = true;

View File

@ -1,24 +1,24 @@
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }:
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-rresult-${version}";
version = "0.6.0";
src = fetchurl {
url = "https://erratique.ch/software/rresult/releases/rresult-${version}.tbz";
sha256 = "1k69a3gvrk7f2cshwjzvk7818f0bwxhacgd14wxy6d4gmrggci86";
};
name = "ocaml${ocaml.version}-rresult-${version}";
version = "0.6.0";
src = fetchurl {
url = "https://erratique.ch/software/rresult/releases/rresult-${version}.tbz";
sha256 = "1k69a3gvrk7f2cshwjzvk7818f0bwxhacgd14wxy6d4gmrggci86";
};
buildInputs = [ ocaml findlib ocamlbuild topkg ];
buildInputs = [ ocaml findlib ocamlbuild topkg ];
propagatedBuildInputs = [ result ];
inherit (topkg) buildPhase installPhase;
inherit (topkg) buildPhase installPhase;
meta = {
license = lib.licenses.isc;
homepage = "https://erratique.ch/software/rresult";
description = "Result value combinators for OCaml";
maintainers = [ lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
meta = {
license = lib.licenses.isc;
homepage = "https://erratique.ch/software/rresult";
description = "Result value combinators for OCaml";
maintainers = [ lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}

View File

@ -3,24 +3,24 @@
}:
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-webbrowser-${version}";
version = "0.6.1";
src = fetchurl {
url = "https://erratique.ch/software/webbrowser/releases/webbrowser-${version}.tbz";
sha256 = "137a948bx7b71zfv4za3hhznrn5lzbbrgzjy0das83zms508isx3";
};
name = "ocaml${ocaml.version}-webbrowser-${version}";
version = "0.6.1";
src = fetchurl {
url = "https://erratique.ch/software/webbrowser/releases/webbrowser-${version}.tbz";
sha256 = "137a948bx7b71zfv4za3hhznrn5lzbbrgzjy0das83zms508isx3";
};
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
buildInputs = [];
propagatedBuildInputs = [ astring bos cmdliner rresult ];
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
buildInputs = [];
propagatedBuildInputs = [ astring bos cmdliner rresult ];
inherit (topkg) buildPhase installPhase;
inherit (topkg) buildPhase installPhase;
meta = {
description = "Open and reload URIs in browsers from OCaml";
homepage = "https://erratique.ch/software/webbrowser";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
meta = {
description = "Open and reload URIs in browsers from OCaml";
homepage = "https://erratique.ch/software/webbrowser";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}