zet: fix build

This commit is contained in:
ghpzin 2024-08-22 03:29:51 +03:00
parent b05f23166a
commit fbffac3af1
No known key found for this signature in database

View File

@ -1,6 +1,7 @@
{ lib
, rustPlatform
, fetchFromGitHub
, fetchpatch2
}:
rustPlatform.buildRustPackage rec {
@ -14,6 +15,15 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-IjM+jSb+kdML0zZGuz9+9wrFzQCujn/bg9/vaTzMtUs=";
};
patches = [
# fix unused_qualifications lint with rust 1.78+
# https://github.com/yarrow/zet/commit/b6a0c67f6ac76fb7bf8234951678b77fbac12d76
(fetchpatch2 {
url = "https://github.com/yarrow/zet/commit/b6a0c67f6ac76fb7bf8234951678b77fbac12d76.patch?full_index=1";
hash = "sha256-HojhKM7UJh5xpD9a18Wh0hiiUDOE+jK0BKGYozYjMBc=";
})
];
cargoHash = "sha256-kHIOsSR7ZxBzp4dtm2hbi8ddtlQ86x5EASk5HFmnhFo=";
# tests fail with `--release`