1
0
forked from extern/nix-config

overlays: Patch fzf to prevent fzf_key_bindings error

I was going to wait until the next nixos-unstable release, but it's been
a week since the branch was updated. This commit makes it possible to
use the latest nixos-unstable release without worrying about the
fzf_key_bindings error introduced in the recent fzf update.
This commit is contained in:
Donovan Glover 2023-10-25 13:48:17 -04:00
parent aca473ecb3
commit 963ac19447
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 15 additions and 0 deletions

View File

@ -1,6 +1,7 @@
{
imports = [
./alejandra.nix
./fzf.nix
./zola.nix
];
}

14
overlays/fzf.nix Normal file
View File

@ -0,0 +1,14 @@
{
nixpkgs.overlays = [
(final: prev: {
fzf = prev.fzf.overrideAttrs (oldAttrs: {
postInstall = (oldAttrs.postInstall or "") + ''
cat << EOF > $out/share/fish/vendor_conf.d/load-fzf-key-bindings.fish
status is-interactive; or exit 0
fzf_key_bindings
EOF
'';
});
})
];
}