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
2 changed files with 3 additions and 1 deletions
+1 -1
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;
@@ -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;
};
}