gitui: fix build for v0.27.0
Co-authored-by: Picnoir <picnoir@alternativebit.fr>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user