Merge pull request #285294 from ncfavier/nix-bash-completions-fix

nix-bash-completions: fix improper escaping
This commit is contained in:
Naïm Favier 2024-02-07 10:26:56 +01:00 committed by GitHub
commit be4596f17b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub }:
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
stdenv.mkDerivation rec {
version = "0.6.8";
@ -11,6 +11,14 @@ stdenv.mkDerivation rec {
sha256 = "1n5zs6xcnv4bv1hdaypmz7fv4j7dsr4a0ifah99iyj4p5j85i1bc";
};
patches = [
# Fix improper escaping: https://github.com/NixOS/nixpkgs/issues/284162
(fetchpatch {
url = "https://github.com/hedning/nix-bash-completions/pull/28/commits/ef2055aa28754fa9e009bbfebc1491972e4f4e67.patch";
hash = "sha256-TRkHrk7bX7DX0COzzYR+1pgTqLy7J55BcejNjRwthII=";
})
];
postPatch = ''
# Nix 2.4+ provides its own completion for the nix command, see https://github.com/hedning/nix-bash-completions/issues/20
# NixOS provides its own completions for nixos-rebuild now.