From 419a5ca82ff7243e635ea4e0d538a37e573a1277 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Fri, 15 Nov 2024 22:51:04 +0100 Subject: [PATCH] taizen: fix build --- pkgs/by-name/ta/taizen/package.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ta/taizen/package.nix b/pkgs/by-name/ta/taizen/package.nix index 30bb445089f5..01b08de3d4e4 100644 --- a/pkgs/by-name/ta/taizen/package.nix +++ b/pkgs/by-name/ta/taizen/package.nix @@ -1,6 +1,7 @@ { lib , rustPlatform , fetchFromGitHub +, fetchpatch2 , pkg-config , ncurses , openssl @@ -19,7 +20,16 @@ rustPlatform.buildRustPackage rec { hash = "sha256-pGcD3+3Ds3U8NuNySaDnz0zzAvZlSDte1jRPdM5qrZA="; }; - cargoHash = "sha256-2X9ZhqaQ6Y+mwXTMbvBQWLR24+KYYqjIqQy/8XqGi18="; + cargoPatches = [ + # update cargo dependencies upstreamed: https://github.com/oppiliappan/taizen/pull/27 + (fetchpatch2 { + name = "update-cargo-lock.patch"; + url = "https://github.com/oppiliappan/taizen/commit/104a1663268623e9ded45afaf2fe98c9c42b7b21.patch"; + hash = "sha256-ujsr7MjZWEu+2mijVH1aqtTJXKZC4m5vl73Jre9XHbU="; + }) + ]; + + cargoHash = "sha256-bE7GZOQgAg4XdWCmnicPK4H4Y+T1snISCe/uGjoQATo="; nativeBuildInputs = [ pkg-config ];