From b7f21925de63a03eec47aa42e206d0a5cdb82f2d Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 5 Mar 2022 09:00:16 +0100 Subject: [PATCH] tv pkgs: move fzf to override --- tv/5pkgs/override/default.nix | 7 ------- .../{fzf.complete1.patch => fzf/complete1.patch} | 0 tv/5pkgs/override/fzf/default.nix | 9 +++++++++ 3 files changed, 9 insertions(+), 7 deletions(-) rename tv/5pkgs/override/{fzf.complete1.patch => fzf/complete1.patch} (100%) create mode 100644 tv/5pkgs/override/fzf/default.nix diff --git a/tv/5pkgs/override/default.nix b/tv/5pkgs/override/default.nix index dc8fc5907..8a0c10872 100644 --- a/tv/5pkgs/override/default.nix +++ b/tv/5pkgs/override/default.nix @@ -1,12 +1,5 @@ with import ; self: super: { - fzf = super.fzf.overrideAttrs (old: { - # XXX cannot use `patches` because fzf has a custom patchPhase - patchPhase = '' - patch -Np1 < ${./fzf.complete1.patch} - ${old.patchPhase or ""} - ''; - }); input-fonts = super.input-fonts.overrideAttrs (old: rec { src = self.fetchzip { url = "http://xu.r/~tv/mirrors/input-fonts/Input-Font-2.zip"; diff --git a/tv/5pkgs/override/fzf.complete1.patch b/tv/5pkgs/override/fzf/complete1.patch similarity index 100% rename from tv/5pkgs/override/fzf.complete1.patch rename to tv/5pkgs/override/fzf/complete1.patch diff --git a/tv/5pkgs/override/fzf/default.nix b/tv/5pkgs/override/fzf/default.nix new file mode 100644 index 000000000..661db0ed5 --- /dev/null +++ b/tv/5pkgs/override/fzf/default.nix @@ -0,0 +1,9 @@ +self: super: + +super.fzf.overrideAttrs (old: { + # XXX cannot use `patches` because fzf has a custom patchPhase + patchPhase = '' + patch -Np1 < ${./complete1.patch} + ${old.patchPhase or ""} + ''; +})