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