···1111 sha256 = "1n5zs6xcnv4bv1hdaypmz7fv4j7dsr4a0ifah99iyj4p5j85i1bc";
1212 };
13131414+ postPatch = ''
1515+ # Nix 2.4+ provides its own completion for the nix command, see https://github.com/hedning/nix-bash-completions/issues/20
1616+ substituteInPlace _nix --replace 'nix nixos-option' 'nixos-option'
1717+ '';
1818+1419 strictDeps = true;
1515- # To enable lazy loading via. bash-completion we need a symlink to the script
2020+ # To enable lazy loading via bash-completion we need a symlink to the script
1621 # from every command name.
1722 installPhase = ''
1823 runHook preInstall
···3641 description = "Bash completions for Nix, NixOS, and NixOps";
3742 license = licenses.bsd3;
3843 platforms = platforms.all;
3939- maintainers = with maintainers; [ hedning ];
4040- # Set a lower priority such that the newly provided completion from Nix 2.4 are preferred.
4444+ maintainers = with maintainers; [ hedning ncfavier ];
4545+ # Set a lower priority such that Nix wins in case of conflicts.
4146 priority = 10;
4247 };
4348}