diff options
author | misuzu <bakalolka@gmail.com> | 2023-01-23 11:39:54 +0200 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2023-01-23 20:41:11 +1000 |
commit | 6262935d09f683335d35bbc6413f1fffb50bd5ac (patch) | |
tree | 3552b4dbc593ace31cbd1fe89441fe06bde48854 /pkgs/tools/misc/fzf | |
parent | 7b5c0be4de133ae3f8553e217dae59c059eb8a09 (diff) |
fzf: fix failing test on 32-bit platforms
Diffstat (limited to 'pkgs/tools/misc/fzf')
-rw-r--r-- | pkgs/tools/misc/fzf/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/tools/misc/fzf/default.nix b/pkgs/tools/misc/fzf/default.nix index 6a29151a51785..8e84b5d6fc7cf 100644 --- a/pkgs/tools/misc/fzf/default.nix +++ b/pkgs/tools/misc/fzf/default.nix @@ -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 |