about summary refs log tree commit diff
path: root/pkgs/tools/misc/bat
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2022-12-26 10:54:18 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2022-12-27 18:37:27 +1000
commitd97726bb767167a9baf67979bd37b3a1d45aa83e (patch)
treeb6f7669f9fef82b4462dbca14515e3f3fcfea3df /pkgs/tools/misc/bat
parent363980f93d89a23d759caed71beadf9fa0192d46 (diff)
bat: add completion patch
Diffstat (limited to 'pkgs/tools/misc/bat')
-rw-r--r--pkgs/tools/misc/bat/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/tools/misc/bat/default.nix b/pkgs/tools/misc/bat/default.nix
index cc52d952eee31..81870cd492f1e 100644
--- a/pkgs/tools/misc/bat/default.nix
+++ b/pkgs/tools/misc/bat/default.nix
@@ -8,6 +8,7 @@
 , libiconv
 , installShellFiles
 , makeWrapper
+, fetchpatch
 }:
 
 rustPlatform.buildRustPackage rec {
@@ -22,6 +23,16 @@ rustPlatform.buildRustPackage rec {
   };
   cargoSha256 = "sha256-ye6GH4pcI9h1CNpobUzfJ+2WlqJ98saCdD77AtSGafg=";
 
+  cargoPatches = [
+    # merged upstream in https://github.com/sharkdp/bat/pull/2399
+    (fetchpatch {
+      name = "disable-completion-of-cache-subcommand.patch";
+      url = "https://github.com/sharkdp/bat/commit/b6b9d3a629bd9b08725df2a4e7b92c3023584a89.patch";
+      hash = "sha256-G4LajO09+qfhpr+HRvAHCuE9EETit2e16ZEyAtz26B4=";
+      excludes = [ "CHANGELOG.md" ];
+    })
+  ];
+
   nativeBuildInputs = [ pkg-config installShellFiles makeWrapper ];
 
   buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ];