mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 03:43:45 +00:00
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
@ -546,7 +546,7 @@ in
|
|||||||
[ nix
|
[ nix
|
||||||
pkgs.nix-info
|
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;
|
environment.etc."nix/nix.conf".source = nixConf;
|
||||||
|
|
||||||
|
@ -32,5 +32,7 @@ stdenv.mkDerivation rec {
|
|||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ hedning ];
|
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 New Issue
Block a user