git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #75376 from vbgl/ocaml-irmin-2.0.0

ocamlPackages.irmin: init at 2.0.0

commit69a40eda5f9f48db6cd92570e5c8b2ea95780b46 authorVincent Laporte <vbgl@users.noreply.github.com> dateFri 20 Dec 2019, 10:57 (7 years ago) parentb76720fd6eb9b5
14 files changed+306
pkgs/development/ocaml-modules/alcotest/lwt.nix+16 pkgs/development/ocaml-modules/index/default.nix+23 pkgs/development/ocaml-modules/irmin-watcher/default.nix+23 pkgs/development/ocaml-modules/irmin/default.nix+31 pkgs/development/ocaml-modules/irmin/fs.nix+21 pkgs/development/ocaml-modules/irmin/git.nix+20 pkgs/development/ocaml-modules/irmin/graphql.nix+20 pkgs/development/ocaml-modules/irmin/http.nix+23 pkgs/development/ocaml-modules/irmin/mem.nix+19 pkgs/development/ocaml-modules/irmin/pack.nix+19 pkgs/development/ocaml-modules/irmin/test.nix+15 pkgs/development/ocaml-modules/irmin/unix.nix+26 pkgs/development/ocaml-modules/yaml/default.nix+24 pkgs/top-level/ocaml-packages.nix+26
pkgs/development/ocaml-modules/alcotest/lwt.nixnew file+16
@@ -0,0 +1,16 @@
1+{ lib, buildDunePackage, alcotest, logs, ocaml_lwt }:
2+
3+buildDunePackage {
4+ pname = "alcotest-lwt";
5+
6+ inherit (alcotest) version src;
7+
8+ propagatedBuildInputs = [ alcotest logs ocaml_lwt ];
9+
10+ doCheck = true;
11+
12+ meta = alcotest.meta // {
13+ description = "Lwt-based helpers for Alcotest";
14+ };
15+
16+}
pkgs/development/ocaml-modules/index/default.nixnew file+23
@@ -0,0 +1,23 @@
1+{ lib, fetchurl, buildDunePackage, fmt, logs }:
2+
3+buildDunePackage rec {
4+ pname = "index";
5+ version = "1.0.1";
6+
7+ minimumOCamlVersion = "4.07";
8+
9+ src = fetchurl {
10+ url = "https://github.com/mirage/index/releases/download/${version}/index-${version}.tbz";
11+ sha256 = "1006wr3g21s4j2vsd73gphhkrh1fy4swh6gqvlsa9c6q7vz9wbvz";
12+ };
13+
14+ propagatedBuildInputs = [ fmt logs ];
15+
16+ meta = {
17+ homepage = "https://github.com/mirage/index";
18+ description = "A platform-agnostic multi-level index";
19+ license = lib.licenses.mit;
20+ maintainers = [ lib.maintainers.vbgl ];
21+ };
22+
23+}
pkgs/development/ocaml-modules/irmin-watcher/default.nixnew file+23
@@ -0,0 +1,23 @@
1+{ lib, fetchurl, buildDunePackage
2+, astring, fmt, logs, ocaml_lwt
3+}:
4+
5+buildDunePackage rec {
6+ pname = "irmin-watcher";
7+ version = "0.4.1";
8+
9+ src = fetchurl {
10+ url = "https://github.com/mirage/irmin-watcher/releases/download/${version}/irmin-watcher-${version}.tbz";
11+ sha256 = "00d4ph4jbsw6adp3zqdrwi099hfcf7p1xzi0685qr7bgcmandjfv";
12+ };
13+
14+ propagatedBuildInputs = [ astring fmt logs ocaml_lwt ];
15+
16+ meta = {
17+ homepage = "https://github.com/mirage/irmin-watcher";
18+ description = "Portable Irmin watch backends using FSevents or Inotify";
19+ license = lib.licenses.isc;
20+ maintainers = [ lib.maintainers.vbgl ];
21+ };
22+
23+}
pkgs/development/ocaml-modules/irmin/default.nixnew file+31
@@ -0,0 +1,31 @@
1+{ lib, fetchurl, buildDunePackage
2+, astring, base64, digestif, fmt, jsonm, logs, ocaml_lwt, ocamlgraph, uri
3+, alcotest, hex
4+}:
5+
6+buildDunePackage rec {
7+
8+ pname = "irmin";
9+ version = "2.0.0";
10+
11+ minimumOCamlVersion = "4.06";
12+
13+ src = fetchurl {
14+ url = "https://github.com/mirage/irmin/releases/download/${version}/irmin-${version}.tbz";
15+ sha256 = "09qffvgi5yrm3ghiywlbdhjly8xb5x5njnan213q8j033fzmf2dr";
16+ };
17+
18+ propagatedBuildInputs = [ astring base64 digestif fmt jsonm logs ocaml_lwt ocamlgraph uri ];
19+
20+ checkInputs = lib.optionals doCheck [ alcotest hex ];
21+
22+ doCheck = true;
23+
24+ meta = {
25+ homepage = "https://irmin.org/";
26+ description = "A distributed database built on the same principles as Git";
27+ license = lib.licenses.isc;
28+ maintainers = [ lib.maintainers.vbgl ];
29+ };
30+
31+}
pkgs/development/ocaml-modules/irmin/fs.nixnew file+21
@@ -0,0 +1,21 @@
1+{ lib, buildDunePackage, irmin, irmin-test }:
2+
3+buildDunePackage rec {
4+
5+ pname = "irmin-fs";
6+
7+ inherit (irmin) version src;
8+
9+ propagatedBuildInputs = [ irmin ];
10+
11+ checkInputs = lib.optional doCheck irmin-test;
12+
13+ doCheck = true;
14+
15+ meta = irmin.meta // {
16+ description = "Generic file-system backend for Irmin";
17+ };
18+
19+}
20+
21+
pkgs/development/ocaml-modules/irmin/git.nixnew file+20
@@ -0,0 +1,20 @@
1+{ lib, buildDunePackage, git, irmin, irmin-mem, irmin-test, git-unix }:
2+
3+buildDunePackage rec {
4+
5+ pname = "irmin-git";
6+
7+ inherit (irmin) version src;
8+
9+ propagatedBuildInputs = [ git irmin ];
10+
11+ checkInputs = lib.optionals doCheck [ git-unix irmin-mem irmin-test ];
12+
13+ doCheck = true;
14+
15+ meta = irmin.meta // {
16+ description = "Git backend for Irmin";
17+ };
18+
19+}
20+
pkgs/development/ocaml-modules/irmin/graphql.nixnew file+20
@@ -0,0 +1,20 @@
1+{ lib, buildDunePackage, cohttp-lwt, graphql-cohttp, graphql-lwt, irmin }:
2+
3+buildDunePackage rec {
4+
5+ pname = "irmin-graphql";
6+
7+ inherit (irmin) version src;
8+
9+ propagatedBuildInputs = [ cohttp-lwt graphql-cohttp graphql-lwt irmin ];
10+
11+ doCheck = true;
12+
13+ meta = irmin.meta // {
14+ description = "GraphQL server for Irmin";
15+ };
16+
17+}
18+
19+
20+
pkgs/development/ocaml-modules/irmin/http.nixnew file+23
@@ -0,0 +1,23 @@
1+{ lib, buildDunePackage, cohttp-lwt, irmin, webmachine
2+, checkseum, git-unix, irmin-git, irmin-mem, irmin-test
3+}:
4+
5+buildDunePackage rec {
6+
7+ pname = "irmin-http";
8+
9+ inherit (irmin) version src;
10+
11+ propagatedBuildInputs = [ cohttp-lwt irmin webmachine ];
12+
13+ checkInputs = lib.optionals doCheck [ checkseum git-unix irmin-git irmin-mem irmin-test ];
14+
15+ doCheck = true;
16+
17+ meta = irmin.meta // {
18+ description = "HTTP client and server for Irmin";
19+ };
20+
21+}
22+
23+
pkgs/development/ocaml-modules/irmin/mem.nixnew file+19
@@ -0,0 +1,19 @@
1+{ lib, buildDunePackage, irmin, irmin-test }:
2+
3+buildDunePackage rec {
4+
5+ pname = "irmin-mem";
6+
7+ inherit (irmin) version src;
8+
9+ propagatedBuildInputs = [ irmin ];
10+
11+ checkInputs = lib.optional doCheck irmin-test;
12+
13+ doCheck = true;
14+
15+ meta = irmin.meta // {
16+ description = "Generic in-memory Irmin stores";
17+ };
18+
19+}
pkgs/development/ocaml-modules/irmin/pack.nixnew file+19
@@ -0,0 +1,19 @@
1+{ lib, buildDunePackage, alcotest-lwt, index, irmin, irmin-test }:
2+
3+buildDunePackage rec {
4+
5+ pname = "irmin-pack";
6+
7+ inherit (irmin) version src;
8+
9+ propagatedBuildInputs = [ index irmin ];
10+
11+ checkInputs = lib.optionals doCheck [ alcotest-lwt irmin-test ];
12+
13+ doCheck = true;
14+
15+ meta = irmin.meta // {
16+ description = "Irmin backend which stores values in a pack file";
17+ };
18+
19+}
pkgs/development/ocaml-modules/irmin/test.nixnew file+15
@@ -0,0 +1,15 @@
1+{ buildDunePackage, alcotest, cmdliner, irmin, metrics-unix, mtime }:
2+
3+buildDunePackage {
4+
5+ pname = "irmin-test";
6+
7+ inherit (irmin) version src;
8+
9+ propagatedBuildInputs = [ alcotest cmdliner irmin metrics-unix mtime ];
10+
11+ meta = irmin.meta // {
12+ description = "Irmin test suite";
13+ };
14+
15+}
pkgs/development/ocaml-modules/irmin/unix.nixnew file+26
@@ -0,0 +1,26 @@
1+{ lib, buildDunePackage
2+, checkseum, cmdliner, git-unix, yaml
3+, irmin, irmin-fs, irmin-git, irmin-graphql, irmin-http, irmin-mem, irmin-pack, irmin-watcher
4+, irmin-test
5+}:
6+
7+buildDunePackage rec {
8+
9+ pname = "irmin-unix";
10+
11+ inherit (irmin) version src;
12+
13+ propagatedBuildInputs = [ checkseum cmdliner git-unix yaml
14+ irmin irmin-fs irmin-git irmin-graphql irmin-http irmin-mem irmin-pack irmin-watcher
15+ ];
16+
17+ checkInputs = lib.optional doCheck irmin-test;
18+
19+ doCheck = true;
20+
21+ meta = irmin.meta // {
22+ description = "Unix backends for Irmin";
23+ };
24+
25+}
26+
pkgs/development/ocaml-modules/yaml/default.nixnew file+24
@@ -0,0 +1,24 @@
1+{ lib, fetchurl, buildDunePackage
2+, ppx_sexp_conv
3+, bos, ctypes, fmt, logs, rresult, sexplib
4+}:
5+
6+buildDunePackage rec {
7+ pname = "yaml";
8+ version = "2.0.1";
9+
10+ src = fetchurl {
11+ url = "https://github.com/avsm/ocaml-yaml/releases/download/v${version}/yaml-v${version}.tbz";
12+ sha256 = "1r8jj572h416g2zliwmxj2j9hkv73nxnpfb9gmbj9gixg24lskx0";
13+ };
14+
15+ propagatedBuildInputs = [ bos ctypes fmt logs ppx_sexp_conv rresult sexplib ];
16+
17+ meta = {
18+ description = "Parse and generate YAML 1.1 files";
19+ homepage = "https://github.com/avsm/ocaml-yaml";
20+ license = lib.licenses.isc;
21+ maintainers = [ lib.maintainers.vbgl ];
22+ };
23+
24+}
pkgs/top-level/ocaml-packages.nix+26
@@ -18,6 +18,8 @@ let
1818
1919 alcotest = callPackage ../development/ocaml-modules/alcotest {};
2020
21+ alcotest-lwt = callPackage ../development/ocaml-modules/alcotest/lwt.nix {};
22+
2123 angstrom = callPackage ../development/ocaml-modules/angstrom { };
2224
2325 angstrom-async = callPackage ../development/ocaml-modules/angstrom-async { };
@@ -362,10 +364,32 @@ let
362364
363365 httpaf = callPackage ../development/ocaml-modules/httpaf { };
364366
367+ index = callPackage ../development/ocaml-modules/index { };
368+
365369 inifiles = callPackage ../development/ocaml-modules/inifiles { };
366370
367371 iri = callPackage ../development/ocaml-modules/iri { };
368372
373+ irmin = callPackage ../development/ocaml-modules/irmin { };
374+
375+ irmin-fs = callPackage ../development/ocaml-modules/irmin/fs.nix { };
376+
377+ irmin-git = callPackage ../development/ocaml-modules/irmin/git.nix { };
378+
379+ irmin-graphql = callPackage ../development/ocaml-modules/irmin/graphql.nix { };
380+
381+ irmin-http = callPackage ../development/ocaml-modules/irmin/http.nix { };
382+
383+ irmin-mem = callPackage ../development/ocaml-modules/irmin/mem.nix { };
384+
385+ irmin-pack = callPackage ../development/ocaml-modules/irmin/pack.nix { };
386+
387+ irmin-test = callPackage ../development/ocaml-modules/irmin/test.nix { };
388+
389+ irmin-unix = callPackage ../development/ocaml-modules/irmin/unix.nix { };
390+
391+ irmin-watcher = callPackage ../development/ocaml-modules/irmin-watcher { };
392+
369393 jingoo = callPackage ../development/ocaml-modules/jingoo {
370394 pcre = ocaml_pcre;
371395 };
@@ -871,6 +895,8 @@ let
871895
872896 xtmpl = callPackage ../development/ocaml-modules/xtmpl { };
873897
898+ yaml = callPackage ../development/ocaml-modules/yaml { };
899+
874900 yojson = callPackage ../development/ocaml-modules/yojson { };
875901
876902 zarith = callPackage ../development/ocaml-modules/zarith { };