Merge pull request #207224 from ncfavier/nix-bash-completions

authored by

Naïm Favier and committed by
GitHub
d62198f2 84b6c24b

+8 -3
+8 -3
pkgs/shells/bash/nix-bash-completions/default.nix
··· 11 11 sha256 = "1n5zs6xcnv4bv1hdaypmz7fv4j7dsr4a0ifah99iyj4p5j85i1bc"; 12 12 }; 13 13 14 + postPatch = '' 15 + # Nix 2.4+ provides its own completion for the nix command, see https://github.com/hedning/nix-bash-completions/issues/20 16 + substituteInPlace _nix --replace 'nix nixos-option' 'nixos-option' 17 + ''; 18 + 14 19 strictDeps = true; 15 - # To enable lazy loading via. bash-completion we need a symlink to the script 20 + # To enable lazy loading via bash-completion we need a symlink to the script 16 21 # from every command name. 17 22 installPhase = '' 18 23 runHook preInstall ··· 36 41 description = "Bash completions for Nix, NixOS, and NixOps"; 37 42 license = licenses.bsd3; 38 43 platforms = platforms.all; 39 - maintainers = with maintainers; [ hedning ]; 40 - # Set a lower priority such that the newly provided completion from Nix 2.4 are preferred. 44 + maintainers = with maintainers; [ hedning ncfavier ]; 45 + # Set a lower priority such that Nix wins in case of conflicts. 41 46 priority = 10; 42 47 }; 43 48 }