Skip to content

Commit b110ca4

Browse files
authored
Merge pull request #333605 from ProducerMatt/staging-next
rsbkb: patch time crate for Rust 1.80
2 parents d151126 + 2d426e1 commit b110ca4

File tree

2 files changed

+36
-3
lines changed

2 files changed

+36
-3
lines changed

pkgs/tools/text/rsbkb/default.nix

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
, enableAppletSymlinks ? true
55
}:
66

7-
rustPlatform.buildRustPackage rec {
8-
pname = "rsbkb";
7+
let
98
version = "1.4";
9+
in rustPlatform.buildRustPackage {
10+
pname = "rsbkb";
11+
inherit version;
1012

1113
src = fetchFromGitHub {
1214
owner = "trou";
@@ -15,7 +17,10 @@ rustPlatform.buildRustPackage rec {
1517
hash = "sha256-c5+Q/y2tZfhXQIAs1W67/xfB+qz1Xn33tKXRGDAi3qs=";
1618
};
1719

18-
cargoHash = "sha256-kGxYH3frBcmvBCFeF2oxAS4FALcmnRyCH1fi0NF0wSo=";
20+
cargoPatches = [
21+
./time.patch
22+
];
23+
cargoHash = "sha256-jRkwfIEB9DEzoV5xogTDz1cHfdsvLM6E27E7hQBa9JY=";
1924

2025
# Setup symlinks for all the utilities,
2126
# busybox style

pkgs/tools/text/rsbkb/time.patch

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
diff --git a/Cargo.lock b/Cargo.lock
2+
index a23d825..183db77 100644
3+
--- a/Cargo.lock
4+
+++ b/Cargo.lock
5+
@@ -564,9 +564,9 @@ checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76"
6+
7+
[[package]]
8+
name = "time"
9+
-version = "0.3.34"
10+
+version = "0.3.36"
11+
source = "registry+https://github.com/rust-lang/crates.io-index"
12+
-checksum = "c8248b6521bb14bc45b4067159b9b6ad792e2d6d754d6c41fb50e29fefe38749"
13+
+checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885"
14+
dependencies = [
15+
"deranged",
16+
"itoa",
17+
@@ -587,9 +587,9 @@ checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
18+
19+
[[package]]
20+
name = "time-macros"
21+
-version = "0.2.17"
22+
+version = "0.2.18"
23+
source = "registry+https://github.com/rust-lang/crates.io-index"
24+
-checksum = "7ba3a3ef41e6672a2f0f001392bb5dcd3ff0a9992d618ca761a11c3121547774"
25+
+checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf"
26+
dependencies = [
27+
"num-conv",
28+
"time-core",

0 commit comments

Comments
 (0)