mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-20 09:47:57 +02:00
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:
parent
aca473ecb3
commit
963ac19447
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./alejandra.nix
|
./alejandra.nix
|
||||||
|
./fzf.nix
|
||||||
./zola.nix
|
./zola.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
14
overlays/fzf.nix
Normal file
14
overlays/fzf.nix
Normal 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
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user