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:
Thiago Kenji Okada 2021-11-26 10:32:51 -03:00 committed by GitHub
commit 6f4eab2bd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -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;

View file

@ -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;
};
}