Merge pull request #147459 from samueldr/fix/nix-bash-completion-2.4
Fix bash completion for stable nix-* commands with Nix 2.4
This commit is contained in:
commit
6f4eab2bd1
2 changed files with 3 additions and 1 deletions
|
@ -546,7 +546,7 @@ in
|
|||
[ nix
|
||||
pkgs.nix-info
|
||||
]
|
||||
++ optional (config.programs.bash.enableCompletion && !versionAtLeast nixVersion "2.4pre") pkgs.nix-bash-completions;
|
||||
++ optional (config.programs.bash.enableCompletion) pkgs.nix-bash-completions;
|
||||
|
||||
environment.etc."nix/nix.conf".source = nixConf;
|
||||
|
||||
|
|
|
@ -32,5 +32,7 @@ stdenv.mkDerivation rec {
|
|||
license = licenses.bsd3;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ hedning ];
|
||||
# Set a lower priority such that the newly provided completion from Nix 2.4 are preferred.
|
||||
priority = 10;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue