Skip to content

Commit 74423e7

Browse files
authored
ocamlPackages.tls: 1.0.4 → 2.0.0 (#384688)
2 parents 1a7b882 + a23dab1 commit 74423e7

File tree

7 files changed

+44
-15
lines changed

7 files changed

+44
-15
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
lib,
3+
buildDunePackage,
4+
fetchurl,
5+
ptime,
6+
version ? "5.0.0",
7+
}:
8+
9+
buildDunePackage {
10+
inherit version;
11+
12+
pname = "mirage-ptime";
13+
14+
src = fetchurl {
15+
url = "https://github.com/mirage/mirage-ptime/releases/download/v${version}/mirage-ptime-${version}.tbz";
16+
hash = "sha256-1VNWBGjVuU2yWwVzjCSZ8pDuZrFKwitDAuZn8fpENHE=";
17+
};
18+
19+
propagatedBuildInputs = [ ptime ];
20+
21+
meta = {
22+
description = "A POSIX clock for MirageOS";
23+
license = lib.licenses.isc;
24+
maintainers = [ lib.maintainers.vbgl ];
25+
changelog = "https://raw.githubusercontent.com/mirage/mirage-ptime/refs/tags/v${version}/CHANGES.md";
26+
homepage = "https://github.com/mirage/mirage-ptime";
27+
};
28+
}

pkgs/development/ocaml-modules/tls/async.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
async,
55
cstruct-async,
66
core,
7-
mirage-crypto-rng-async,
7+
mirage-crypto-rng,
88
}:
99

10-
buildDunePackage rec {
10+
buildDunePackage {
1111
pname = "tls-async";
1212

1313
inherit (tls) src version;
@@ -20,7 +20,7 @@ buildDunePackage rec {
2020
async
2121
core
2222
cstruct-async
23-
mirage-crypto-rng-async
23+
mirage-crypto-rng
2424
tls
2525
];
2626

pkgs/development/ocaml-modules/tls/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818

1919
buildDunePackage rec {
2020
pname = "tls";
21-
version = "1.0.4";
21+
version = "2.0.0";
2222

2323
src = fetchurl {
2424
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-${version}.tbz";
25-
hash = "sha256-yFt8Gh4ipseWEHsnJVld3iYElMDvBrYdn1O+IuHcQug=";
25+
hash = "sha256-aEcNa6hIAHWQjAzGn/6Cq7y7g6t/mI0mYzWhnxLCamI=";
2626
};
2727

2828
minimalOCamlVersion = "4.08";

pkgs/development/ocaml-modules/tls/eio.nix

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,19 @@
55
eio_main,
66
logs,
77
mdx,
8-
mirage-crypto-rng-eio,
8+
mirage-crypto-rng,
99
ptime,
1010
tls,
1111
}:
1212

13-
buildDunePackage rec {
13+
buildDunePackage {
1414
pname = "tls-eio";
1515

1616
inherit (tls) src meta version;
1717

1818
minimalOCamlVersion = "5.0";
1919

20-
# Tests are not compatible with mirage-crypto-rng 1.2.0
21-
doCheck = false;
20+
doCheck = true;
2221
nativeCheckInputs = [
2322
mdx.bin
2423
];
@@ -31,7 +30,7 @@ buildDunePackage rec {
3130
propagatedBuildInputs = [
3231
ptime
3332
eio
34-
mirage-crypto-rng-eio
33+
mirage-crypto-rng
3534
tls
3635
];
3736
}

pkgs/development/ocaml-modules/tls/lwt.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
buildDunePackage,
33
tls,
44
lwt,
5-
mirage-crypto-rng-lwt,
5+
mirage-crypto-rng,
66
}:
77

8-
buildDunePackage rec {
8+
buildDunePackage {
99
pname = "tls-lwt";
1010

1111
inherit (tls) src meta version;
@@ -16,7 +16,7 @@ buildDunePackage rec {
1616

1717
propagatedBuildInputs = [
1818
lwt
19-
mirage-crypto-rng-lwt
19+
mirage-crypto-rng
2020
tls
2121
];
2222
}

pkgs/development/ocaml-modules/tls/mirage.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
tls,
44
fmt,
55
lwt,
6-
mirage-clock,
76
mirage-crypto,
87
mirage-crypto-pk,
98
mirage-flow,
109
mirage-kv,
10+
mirage-ptime,
1111
ptime,
1212
}:
1313

@@ -18,11 +18,11 @@ buildDunePackage {
1818
propagatedBuildInputs = [
1919
fmt
2020
lwt
21-
mirage-clock
2221
mirage-crypto
2322
mirage-crypto-pk
2423
mirage-flow
2524
mirage-kv
25+
mirage-ptime
2626
ptime
2727
tls
2828
];

pkgs/top-level/ocaml-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,8 @@ let
12161216

12171217
mirage-protocols = callPackage ../development/ocaml-modules/mirage-protocols { };
12181218

1219+
mirage-ptime = callPackage ../development/ocaml-modules/mirage-ptime { };
1220+
12191221
mirage-random = callPackage ../development/ocaml-modules/mirage-random { };
12201222

12211223
mirage-random-test = callPackage ../development/ocaml-modules/mirage-random-test { };

0 commit comments

Comments
 (0)