Skip to content

Commit

Permalink
rsbkb: patch time crate for Rust 1.80
Browse files Browse the repository at this point in the history
  • Loading branch information
ProducerMatt committed Aug 10, 2024
1 parent eea70ed commit 2d426e1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pkgs/tools/text/rsbkb/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
, enableAppletSymlinks ? true
}:

rustPlatform.buildRustPackage rec {
pname = "rsbkb";
let
version = "1.4";
in rustPlatform.buildRustPackage {
pname = "rsbkb";
inherit version;

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

cargoHash = "sha256-kGxYH3frBcmvBCFeF2oxAS4FALcmnRyCH1fi0NF0wSo=";
cargoPatches = [
./time.patch
];
cargoHash = "sha256-jRkwfIEB9DEzoV5xogTDz1cHfdsvLM6E27E7hQBa9JY=";

# Setup symlinks for all the utilities,
# busybox style
Expand Down
28 changes: 28 additions & 0 deletions pkgs/tools/text/rsbkb/time.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
diff --git a/Cargo.lock b/Cargo.lock
index a23d825..183db77 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -564,9 +564,9 @@ checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76"

[[package]]
name = "time"
-version = "0.3.34"
+version = "0.3.36"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c8248b6521bb14bc45b4067159b9b6ad792e2d6d754d6c41fb50e29fefe38749"
+checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885"
dependencies = [
"deranged",
"itoa",
@@ -587,9 +587,9 @@ checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"

[[package]]
name = "time-macros"
-version = "0.2.17"
+version = "0.2.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7ba3a3ef41e6672a2f0f001392bb5dcd3ff0a9992d618ca761a11c3121547774"
+checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf"
dependencies = [
"num-conv",
"time-core",

0 comments on commit 2d426e1

Please sign in to comment.