···11 sha256 = "1n5zs6xcnv4bv1hdaypmz7fv4j7dsr4a0ifah99iyj4p5j85i1bc";
12 };
130000014 strictDeps = true;
15- # To enable lazy loading via. bash-completion we need a symlink to the script
16 # from every command name.
17 installPhase = ''
18 runHook preInstall
···36 description = "Bash completions for Nix, NixOS, and NixOps";
37 license = licenses.bsd3;
38 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.
41 priority = 10;
42 };
43}
···11 sha256 = "1n5zs6xcnv4bv1hdaypmz7fv4j7dsr4a0ifah99iyj4p5j85i1bc";
12 };
1314+ 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+19 strictDeps = true;
20+ # To enable lazy loading via bash-completion we need a symlink to the script
21 # from every command name.
22 installPhase = ''
23 runHook preInstall
···41 description = "Bash completions for Nix, NixOS, and NixOps";
42 license = licenses.bsd3;
43 platforms = platforms.all;
44+ maintainers = with maintainers; [ hedning ncfavier ];
45+ # Set a lower priority such that Nix wins in case of conflicts.
46 priority = 10;
47 };
48}