Unverified Commit fbffac3a authored by ghpzin's avatar ghpzin
Browse files

zet: fix build

parent b05f2316
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
{ 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`