From 963ac1944712ddfc1b5ea0e2ccd50ac833b3014b Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 25 Oct 2023 13:48:17 -0400 Subject: [PATCH] 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. --- overlays/default.nix | 1 + overlays/fzf.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 overlays/fzf.nix diff --git a/overlays/default.nix b/overlays/default.nix index 1bb46f0..77cc45d 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -1,6 +1,7 @@ { imports = [ ./alejandra.nix + ./fzf.nix ./zola.nix ]; } diff --git a/overlays/fzf.nix b/overlays/fzf.nix new file mode 100644 index 0000000..6bb4381 --- /dev/null +++ b/overlays/fzf.nix @@ -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 + ''; + }); + }) + ]; +}