mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
fzf: fix failing test on 32-bit platforms
This commit is contained in:
parent
7b5c0be4de
commit
6262935d09
@ -2,6 +2,7 @@
|
||||
, lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, writeText
|
||||
, writeShellScriptBin
|
||||
, runtimeShell
|
||||
@ -46,6 +47,16 @@ buildGoModule rec {
|
||||
"-s" "-w" "-X main.version=${version} -X main.revision=${src.rev}"
|
||||
];
|
||||
|
||||
patches = [
|
||||
# fix for test failure on 32-bit platforms
|
||||
# can be removed in the next release of fzf
|
||||
# https://github.com/junegunn/fzf/issues/3127
|
||||
(fetchpatch {
|
||||
url = "https://github.com/junegunn/fzf/commit/aa7361337d3f78ae1e32283ba395446025323abb.patch";
|
||||
hash = "sha256-ZmBdJa7eq9f58f2pL7QrtDSApkQJQBH/Em12J5xk3Q4=";
|
||||
})
|
||||
];
|
||||
|
||||
# The vim plugin expects a relative path to the binary; patch it to abspath.
|
||||
postPatch = ''
|
||||
sed -i -e "s|expand('<sfile>:h:h')|'$out'|" plugin/fzf.vim
|
||||
|
Loading…
Reference in New Issue
Block a user