gitui: fix build for v0.27.0

Co-authored-by: Picnoir <picnoir@alternativebit.fr>
This commit is contained in:
Antonio Yang
2025-08-27 09:43:58 +08:00
co-authored by Picnoir
parent 77ae3f85d5
commit 9610b3651c
+11
View File
@@ -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