From 9610b3651c469304a3bfae9b482fc67ef244ecb1 Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Tue, 26 Aug 2025 16:21:55 +0800 Subject: [PATCH] gitui: fix build for v0.27.0 Co-authored-by: Picnoir --- pkgs/by-name/gi/gitui/package.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/by-name/gi/gitui/package.nix b/pkgs/by-name/gi/gitui/package.nix index 6c2f8cf7f342..8abe536cbb67 100644 --- a/pkgs/by-name/gi/gitui/package.nix +++ b/pkgs/by-name/gi/gitui/package.nix @@ -9,6 +9,7 @@ cmake, xclip, nix-update-script, + fetchpatch, }: let pname = "gitui"; @@ -39,6 +40,16 @@ rustPlatform.buildRustPackage { libiconv ]; + patches = [ + # Fixes the build for rust 1.89 + # Upstream PR: https://github.com/gitui-org/gitui/pull/2663 + # TOREMOVE for gitui > 0.27.0 + (fetchpatch { + url = "https://github.com/gitui-org/gitui/commit/950e703cab1dd37e3d02e7316ec99cc0dc70513c.patch"; + sha256 = "sha256-KDgOPLKGuJaF0Nc6rw9FPFmcI07I8Gyp/KNX8x6+2xw="; + }) + ]; + postPatch = '' # The cargo config overrides linkers for some targets, breaking the build # on e.g. `aarch64-linux`. These overrides are not required in the Nix