bat: add completion patch

zowoq d97726bb 363980f9

+11
+11
pkgs/tools/misc/bat/default.nix
··· 8 8 , libiconv 9 9 , installShellFiles 10 10 , makeWrapper 11 + , fetchpatch 11 12 }: 12 13 13 14 rustPlatform.buildRustPackage rec { ··· 21 22 sha256 = "sha256-xkGGnWjuZ5ZR4Ll+JwgWyKZFboFZ6HKA8GviR3YBAnM="; 22 23 }; 23 24 cargoSha256 = "sha256-ye6GH4pcI9h1CNpobUzfJ+2WlqJ98saCdD77AtSGafg="; 25 + 26 + cargoPatches = [ 27 + # merged upstream in https://github.com/sharkdp/bat/pull/2399 28 + (fetchpatch { 29 + name = "disable-completion-of-cache-subcommand.patch"; 30 + url = "https://github.com/sharkdp/bat/commit/b6b9d3a629bd9b08725df2a4e7b92c3023584a89.patch"; 31 + hash = "sha256-G4LajO09+qfhpr+HRvAHCuE9EETit2e16ZEyAtz26B4="; 32 + excludes = [ "CHANGELOG.md" ]; 33 + }) 34 + ]; 24 35 25 36 nativeBuildInputs = [ pkg-config installShellFiles makeWrapper ]; 26 37