nixos-rebuild-ng: remove withNgSuffix option

This commit is contained in:
Thiago Kenji Okada
2025-12-01 12:55:55 +00:00
parent 3e892ed367
commit 19b7452eff
5 changed files with 3 additions and 9 deletions
-1
View File
@@ -70,7 +70,6 @@ let
nixos-install = pkgs.nixos-install.override { };
nixos-rebuild-ng = pkgs.nixos-rebuild-ng.override {
nix = config.nix.package;
withNgSuffix = false;
withReexec = true;
};
-1
View File
@@ -727,7 +727,6 @@ let
libxslt.bin
nixos-artwork.wallpapers.simple-dark-gray-bottom
(nixos-rebuild-ng.override {
withNgSuffix = false;
withReexec = true;
})
ntp
+1 -6
View File
@@ -9,7 +9,6 @@
python3Packages,
runCommand,
scdoc,
withNgSuffix ? true,
withReexec ? false,
withShellFiles ? true,
# Very long tmp dirs lead to "too long for Unix domain socket"
@@ -22,7 +21,7 @@
nixos-rebuild-ng,
}:
let
executable = if withNgSuffix then "nixos-rebuild-ng" else "nixos-rebuild";
executable = "nixos-rebuild";
in
python3Packages.buildPythonApplication rec {
pname = "nixos-rebuild-ng";
@@ -57,9 +56,6 @@ python3Packages.buildPythonApplication rec {
--subst-var-by executable ${executable} \
--subst-var-by withReexec ${lib.boolToString withReexec} \
--subst-var-by withShellFiles ${lib.boolToString withShellFiles}
substituteInPlace pyproject.toml \
--replace-fail nixos-rebuild ${executable}
'';
postInstall = lib.optionalString withShellFiles ''
@@ -105,7 +101,6 @@ python3Packages.buildPythonApplication rec {
tests = {
with_reexec = nixos-rebuild-ng.override {
withReexec = true;
withNgSuffix = false;
};
with_nix_latest = nixos-rebuild-ng.override {
nix = nixVersions.latest;
@@ -37,7 +37,7 @@ runCommand "test-nixos-rebuild-repl"
nativeBuildInputs = [
expect
nix
(nixos-rebuild-ng.override { withNgSuffix = false; })
nixos-rebuild-ng
];
nixpkgs = if builtins.pathExists (path + "/.git") then lib.cleanSource path else path;
+1
View File
@@ -1165,6 +1165,7 @@ mapAliases {
else
nixfmt;
nixForLinking = throw "nixForLinking has been removed, use `nixVersions.nixComponents_<version>` instead"; # Added 2025-08-14
nixos-rebuild = nixos-rebuild-ng; # Added 2025-12-02
nixosTest = throw "'nixosTest' has been renamed to/replaced by 'testers.nixosTest'"; # Converted to throw 2025-10-27
nixStable = throw "'nixStable' has been renamed to/replaced by 'nixVersions.stable'"; # Converted to throw 2025-10-27
nm-tray = throw "'nm-tray' has been removed, as it only works with Plasma 5"; # Added 2025-08-30