summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2023-11-05 22:41:03 -0500
committerGitHub <noreply@github.com>2023-11-05 22:41:03 -0500
commitc95728ce727a6e47f66c6dfac6877f44830f5cc8 (patch)
tree666c1c396ab99e01b4675ee3582767b94cf0fe33 /pkgs/shells
parent0d93ec62e06faec6c52331a8a87bd5721b38ce14 (diff)
parent5e7607353937233b0d2c18a14b5a1cea5a7d69a0 (diff)
downloadnixpkgs-c95728ce727a6e47f66c6dfac6877f44830f5cc8.tar
nixpkgs-c95728ce727a6e47f66c6dfac6877f44830f5cc8.tar.gz
nixpkgs-c95728ce727a6e47f66c6dfac6877f44830f5cc8.tar.bz2
nixpkgs-c95728ce727a6e47f66c6dfac6877f44830f5cc8.tar.lz
nixpkgs-c95728ce727a6e47f66c6dfac6877f44830f5cc8.tar.xz
nixpkgs-c95728ce727a6e47f66c6dfac6877f44830f5cc8.tar.zst
nixpkgs-c95728ce727a6e47f66c6dfac6877f44830f5cc8.zip
Merge pull request #262684 from samueldr/feature/nixos-rebuild-completions
nixos-rebuild: Locally own the nixos-rebuild (bash) completions
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/bash/nix-bash-completions/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/shells/bash/nix-bash-completions/default.nix b/pkgs/shells/bash/nix-bash-completions/default.nix
index af516a1bcaa..d6cc156cba1 100644
--- a/pkgs/shells/bash/nix-bash-completions/default.nix
+++ b/pkgs/shells/bash/nix-bash-completions/default.nix
@@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
 
   postPatch = ''
     # Nix 2.4+ provides its own completion for the nix command, see https://github.com/hedning/nix-bash-completions/issues/20
-    substituteInPlace _nix --replace 'nix nixos-option' 'nixos-option'
+    # NixOS provides its own completions for nixos-rebuild now.
+    substituteInPlace _nix \
+      --replace 'nix nixos-option' 'nixos-option' \
+      --replace 'nixos-rebuild nixos-install' 'nixos-install'
   '';
 
   strictDeps = true;