diff options
author | Naïm Favier <n@monade.li> | 2024-02-07 10:26:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-07 10:26:56 +0100 |
commit | be4596f17b30403478c629b27d87fd914a2b9f8a (patch) | |
tree | 38c8d01709fce7bf2caf628cea18f7dc9a1984fd /pkgs/shells | |
parent | 8a07e4df2a365aabd9a36372a6f580b5e25e1a6d (diff) | |
parent | 6a6529ace1f564668ed7546fe032e2418e4b3f0f (diff) |
Merge pull request #285294 from ncfavier/nix-bash-completions-fix
nix-bash-completions: fix improper escaping
Diffstat (limited to 'pkgs/shells')
-rw-r--r-- | pkgs/shells/bash/nix-bash-completions/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/shells/bash/nix-bash-completions/default.nix b/pkgs/shells/bash/nix-bash-completions/default.nix index d6cc156cba1d4..10fb097fd2c8e 100644 --- a/pkgs/shells/bash/nix-bash-completions/default.nix +++ b/pkgs/shells/bash/nix-bash-completions/default.nix @@ -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. |