Merge pull request #85161 from sternenseemann/irmin

ocamlPackages.irmin*: 2.0.0 -> 2.1.0, add ppx_irmin, ocaml-syntax-shims, index: 1.0.1 -> 1.2.0

authored by Vincent Laporte and committed by GitHub ef8ea1e5 1a3d41d4

+54 -8
+4 -3
pkgs/development/ocaml-modules/index/default.nix
··· 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 = {
··· 1 + { lib, fetchurl, buildDunePackage, fmt, logs, stdlib-shims }: 2 3 buildDunePackage rec { 4 pname = "index"; 5 + version = "1.2.0"; 6 7 minimumOCamlVersion = "4.07"; 8 9 src = fetchurl { 10 url = "https://github.com/mirage/index/releases/download/${version}/index-${version}.tbz"; 11 + sha256 = "0d44s1d2mpxvpg0zh57c928wf1w1wd33l1fw5r62al5zmi710ff6"; 12 }; 13 14 + buildInputs = [ stdlib-shims ]; 15 propagatedBuildInputs = [ fmt logs ]; 16 17 meta = {
+3 -3
pkgs/development/ocaml-modules/irmin/default.nix
··· 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 ];
··· 6 buildDunePackage rec { 7 8 pname = "irmin"; 9 + version = "2.1.0"; 10 11 + minimumOCamlVersion = "4.07"; 12 13 src = fetchurl { 14 url = "https://github.com/mirage/irmin/releases/download/${version}/irmin-${version}.tbz"; 15 + sha256 = "1ji8r7zbdmhbk8r8w2hskd9z7pnvirzbhincfxndxgdaxbfkff5g"; 16 }; 17 18 propagatedBuildInputs = [ astring base64 digestif fmt jsonm logs ocaml_lwt ocamlgraph uri ];
+3 -2
pkgs/development/ocaml-modules/irmin/pack.nix
··· 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
··· 1 + { lib, buildDunePackage, alcotest-lwt, index, irmin, irmin-test, ocaml_lwt }: 2 3 buildDunePackage rec { 4 + minimumOCamlVersion = "4.02.3"; 5 6 pname = "irmin-pack"; 7 8 inherit (irmin) version src; 9 10 + propagatedBuildInputs = [ index irmin ocaml_lwt ]; 11 12 checkInputs = lib.optionals doCheck [ alcotest-lwt irmin-test ]; 13
+14
pkgs/development/ocaml-modules/irmin/ppx.nix
···
··· 1 + { lib, buildDunePackage, ppxlib, ocaml-syntax-shims, irmin }: 2 + 3 + buildDunePackage { 4 + pname = "ppx_irmin"; 5 + 6 + inherit (irmin) version src minimumOCamlVersion; 7 + 8 + buildInputs = [ ocaml-syntax-shims ]; 9 + propagatedBuildInputs = [ ppxlib ]; 10 + 11 + meta = irmin.meta // { 12 + description = "PPX deriver for Irmin generics"; 13 + }; 14 + }
+24
pkgs/development/ocaml-modules/ocaml-syntax-shims/default.nix
···
··· 1 + { stdenv, buildDunePackage, fetchurl }: 2 + 3 + buildDunePackage rec { 4 + minimumOCamlVersion = "4.02.3"; 5 + 6 + pname = "ocaml-syntax-shims"; 7 + version = "1.0.0"; 8 + 9 + src = fetchurl { 10 + url = "https://github.com/ocaml-ppx/${pname}/releases/download/${version}/${pname}-${version}.tbz"; 11 + sha256 = "1j7848khli4p7j8i2kmnvhdnhcwhy3zgdpf5ds5ic30ax69y3cl9"; 12 + }; 13 + 14 + useDune2 = true; 15 + 16 + doCheck = true; 17 + 18 + meta = with stdenv.lib; { 19 + homepage = "https://github.com/ocaml-ppx/ocaml-syntax-shims"; 20 + description = "Backport new syntax to older OCaml versions"; 21 + license = licenses.mit; 22 + maintainers = with maintainers; [ sternenseemann ]; 23 + }; 24 + }
+6
pkgs/top-level/ocaml-packages.nix
··· 645 646 ocaml_sqlite3 = callPackage ../development/ocaml-modules/sqlite3 { }; 647 648 syslog = callPackage ../development/ocaml-modules/syslog { }; 649 650 ocaml_text = callPackage ../development/ocaml-modules/ocaml-text { }; ··· 821 ppx_gen_rec = callPackage ../development/ocaml-modules/ppx_gen_rec {}; 822 823 ppx_import = callPackage ../development/ocaml-modules/ppx_import {}; 824 825 ppx_sqlexpr = callPackage ../development/ocaml-modules/sqlexpr/ppx.nix {}; 826
··· 645 646 ocaml_sqlite3 = callPackage ../development/ocaml-modules/sqlite3 { }; 647 648 + ocaml-syntax-shims = callPackage ../development/ocaml-modules/ocaml-syntax-shims { }; 649 + 650 syslog = callPackage ../development/ocaml-modules/syslog { }; 651 652 ocaml_text = callPackage ../development/ocaml-modules/ocaml-text { }; ··· 823 ppx_gen_rec = callPackage ../development/ocaml-modules/ppx_gen_rec {}; 824 825 ppx_import = callPackage ../development/ocaml-modules/ppx_import {}; 826 + 827 + ppx_irmin = callPackage ../development/ocaml-modules/irmin/ppx.nix { 828 + ppxlib = ppxlib.override { version = "0.12.0"; }; 829 + }; 830 831 ppx_sqlexpr = callPackage ../development/ocaml-modules/sqlexpr/ppx.nix {}; 832