ocamlPackages: irmin 2.2.0 → 2.4.0; git: 2.13 → 3.2.0; and related changes (#110184)
* ocamlPackages.index: 1.2.1 -> 1.3.0
* ocamlPackages.decompress: 0.9.0 -> 1.2.0
* ocamlPackages.imagelib-unix: remove at 20191011
* ocamlPackages.imagelib: 20191011 -> 20200929
* ocamlPackages.duff: 0.2 -> 0.3
* ocamlPackages.carton{,-git,-lwt}: init at 0.2.0
* ocamlPackages.encore: 0.5 → 0.7
* ocamlPackages.git-http: remove at 2.1.3
* ocamlPackages.git-unix: move into git directory
* ocamlPackages.irmin-mem: remove at 2.2.0
Replaced by irmin.mem contained in ocamlPackages.irmin >= 2.4.0
* ocamlPackages.git*: 2.1.3 -> 3.2.0
ocamlPackages.git-unix: 2.1.3 -> 3.2.0
ocamlPackages.git-cohttp{,-unix,-mirage}: init at 3.2.0
* ocamlPackages.irmin*: 2.2.0 -> 2.4.0
ocamlPackages.irmin-containers: init at 2.4.0
ocamlPackages.irmin-layers: init at 2.4.0
ocamlPackages.irmin-mirage: init at 2.4.0
ocamlPackages.irmin-mirage-git: init at 2.4.0
ocamlPackages.irmin-mirage-graphql: init at 2.4.0
* ocamlPackages.wodan-irmin: mark as broken
This commit is contained in:
18
pkgs/development/ocaml-modules/git/cohttp-mirage.nix
Normal file
18
pkgs/development/ocaml-modules/git/cohttp-mirage.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ lib, buildDunePackage
|
||||
, git, mimic, cohttp-mirage, cohttp, cohttp-lwt
|
||||
, fmt, lwt, result, rresult, uri
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "git-cohttp-mirage";
|
||||
|
||||
inherit (git) version src minimumOCamlVersion useDune2;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
git mimic cohttp-mirage cohttp cohttp-lwt fmt lwt result rresult uri
|
||||
];
|
||||
|
||||
meta = git.meta // {
|
||||
description = "A package to use HTTP-based ocaml-git with MirageOS backend";
|
||||
};
|
||||
}
|
||||
17
pkgs/development/ocaml-modules/git/cohttp-unix.nix
Normal file
17
pkgs/development/ocaml-modules/git/cohttp-unix.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ buildDunePackage, git, git-cohttp
|
||||
, cohttp-lwt-unix, cohttp-lwt, fmt, lwt, result, rresult, uri
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "git-cohttp-unix";
|
||||
|
||||
inherit (git) version src minimumOCamlVersion useDune2;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
git git-cohttp cohttp-lwt-unix cohttp-lwt fmt lwt result rresult uri
|
||||
];
|
||||
|
||||
meta = git.meta // {
|
||||
description = "A package to use HTTP-based ocaml-git with Unix backend";
|
||||
};
|
||||
}
|
||||
19
pkgs/development/ocaml-modules/git/cohttp.nix
Normal file
19
pkgs/development/ocaml-modules/git/cohttp.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ buildDunePackage, git
|
||||
, cohttp, cohttp-lwt, fmt, lwt, result, rresult, uri
|
||||
, alcotest, alcotest-lwt, bigstringaf, cstruct, logs
|
||||
, mirage-flow, ke
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "git-cohttp";
|
||||
|
||||
inherit (git) version minimumOCamlVersion src useDune2;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
git cohttp cohttp-lwt fmt lwt result rresult uri
|
||||
];
|
||||
|
||||
meta = git.meta // {
|
||||
description = "A package to use HTTP-based ocaml-git with Unix backend";
|
||||
};
|
||||
}
|
||||
@@ -1,27 +1,31 @@
|
||||
{ stdenv, lib, fetchurl, buildDunePackage
|
||||
, alcotest, mtime, mirage-crypto-rng, tls, git-binary
|
||||
, angstrom, astring, cstruct, decompress, digestif, encore, duff, fmt, checkseum
|
||||
, fpath, hex, ke, logs, lru, ocaml_lwt, ocamlgraph, ocplib-endian, uri, rresult
|
||||
, stdlib-shims
|
||||
, fpath, ke, logs, lwt, ocamlgraph, uri, rresult
|
||||
, result, bigstringaf, optint, mirage-flow, domain-name, emile
|
||||
, mimic, carton, carton-lwt, carton-git, ipaddr, psq, crowbar, alcotest-lwt
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "git";
|
||||
version = "2.1.3";
|
||||
version = "3.2.0";
|
||||
|
||||
minimumOCamlVersion = "4.07";
|
||||
minimumOCamlVersion = "4.08";
|
||||
useDune2 = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz";
|
||||
sha256 = "1ppllv65vrkfrmx46aiq5879isffcjmg92z9rv2kh92a83h4lqax";
|
||||
sha256 = "14rq7h1n5v2n0507ycbac8sq21xnzhgirxmlmqv4j5k3aajdcj16";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
angstrom astring checkseum cstruct decompress digestif encore duff fmt fpath
|
||||
hex ke logs lru ocaml_lwt ocamlgraph ocplib-endian uri rresult stdlib-shims
|
||||
ke logs lwt ocamlgraph uri rresult result bigstringaf optint mirage-flow
|
||||
domain-name emile mimic carton carton-lwt carton-git ipaddr psq
|
||||
];
|
||||
checkInputs = [
|
||||
alcotest alcotest-lwt mtime mirage-crypto-rng tls git-binary crowbar
|
||||
];
|
||||
checkInputs = [ alcotest mtime mirage-crypto-rng tls git-binary ];
|
||||
doCheck = !stdenv.isAarch64;
|
||||
|
||||
meta = {
|
||||
|
||||
44
pkgs/development/ocaml-modules/git/unix.nix
Normal file
44
pkgs/development/ocaml-modules/git/unix.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{ buildDunePackage, fetchpatch, git
|
||||
, mmap, rresult, result, bigstringaf
|
||||
, fmt, bos, fpath, uri, digestif, logs, lwt, git-cohttp-unix
|
||||
, mirage-clock, mirage-clock-unix, astring, awa, cmdliner
|
||||
, cohttp-lwt-unix, decompress, domain-name, ipaddr, mtime
|
||||
, tcpip, awa-mirage, mirage-flow
|
||||
, alcotest, alcotest-lwt, base64, cstruct
|
||||
, ke, mirage-crypto-rng, ocurl, git-binary
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "git-unix";
|
||||
inherit (git) version src minimumOCamlVersion;
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
buildInputs = [
|
||||
awa awa-mirage cmdliner git-cohttp-unix
|
||||
mirage-clock mirage-clock-unix tcpip
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
mmap rresult result bigstringaf
|
||||
fmt bos fpath uri digestif logs lwt
|
||||
astring cohttp-lwt-unix decompress
|
||||
domain-name ipaddr mtime mirage-flow
|
||||
];
|
||||
checkInputs = [
|
||||
alcotest alcotest-lwt base64 cstruct ke
|
||||
mirage-crypto-rng ocurl git-binary
|
||||
];
|
||||
doCheck = true;
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/mirage/ocaml-git/commit/09b41073fa869c0a595e1d8ed7224d539682af1c.patch";
|
||||
sha256 = "1avbxv60gbrll9gny1pl6jwbx5b8282h3frhzy2ghb0fx1pggp6w";
|
||||
})
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Unix backend for the Git protocol(s)";
|
||||
inherit (git.meta) homepage license maintainers;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user