chromatic: fix build

This commit is contained in:
aleksana 2024-03-24 01:40:07 +08:00
parent d736c68268
commit a676aa1531
2 changed files with 24 additions and 1 deletions

View file

@ -26,10 +26,17 @@ stdenv.mkDerivation rec {
hash = "sha256-E3v3UoQumBBYDOiXMfCRh5J7bfUCkettHth7SAresCE="; hash = "sha256-E3v3UoQumBBYDOiXMfCRh5J7bfUCkettHth7SAresCE=";
}; };
patches = [
# solve error[E0310]: the parameter type `T` may not live long enough
# in rust-serialize crate
./rustc_serialize_update.patch
];
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit src; inherit src;
name = "${pname}-${version}"; name = "${pname}-${version}";
hash = "sha256-M3UMeGkLf57/I/9BIkyiMpOvjbKQJrOk+axf05vRoW0="; patches = [ ./rustc_serialize_update.patch ];
hash = "sha256-1Zb0J2tO/gIifDymmoXxZf6RNV8foE9QiQqZcrHrWzE=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -0,0 +1,16 @@
diff --git a/Cargo.lock b/Cargo.lock
index ab2add4..7740629 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1031,9 +1031,9 @@ checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848"
[[package]]
name = "rustc-serialize"
-version = "0.3.24"
+version = "0.3.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda"
+checksum = "fe834bc780604f4674073badbad26d7219cadfb4a2275802db12cbae17498401"
[[package]]
name = "rustc_version"