From 59ec8617542d34f5de1938f55406dc21c5ea358c Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 30 Nov 2023 23:01:33 -0500 Subject: [PATCH] overlays: Update ripgrep to 14.0.3 Fixes an issue with fish completions in ripgrep 14.0.1. --- overlays/default.nix | 1 + overlays/ripgrep.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 overlays/ripgrep.nix diff --git a/overlays/default.nix b/overlays/default.nix index 8402c5e1..84395eb9 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -2,6 +2,7 @@ imports = [ ./alejandra.nix ./eza.nix + ./ripgrep.nix ./zola.nix ]; } diff --git a/overlays/ripgrep.nix b/overlays/ripgrep.nix new file mode 100644 index 00000000..90518f0b --- /dev/null +++ b/overlays/ripgrep.nix @@ -0,0 +1,22 @@ +{ + nixpkgs.overlays = [ + (final: prev: { + ripgrep = prev.ripgrep.overrideAttrs (oldAttrs: rec { + version = "14.0.3"; + + src = prev.fetchFromGitHub { + owner = "BurntSushi"; + repo = "ripgrep"; + rev = version; + hash = "sha256-NBGbiy+1AUIBJFx6kcGPSKo08a+dkNo4rNH2I1pki4U="; + }; + + cargoDeps = oldAttrs.cargoDeps.overrideAttrs (prev.lib.const { + name = "ripgrep-vendor.tar.gz"; + inherit src; + outputHash = "sha256-ptWXv4MKM3M4KcFqI0v9LScMBRHkwzvDOVbLxyJtHFU="; + }); + }); + }) + ]; +}