linux: remove assert on linux (#427219)

This commit is contained in:
K900
2025-07-22 09:45:12 +03:00
committed by GitHub
3 changed files with 12 additions and 13 deletions
@@ -94,8 +94,6 @@ let
# cgit) that are needed here should be included directly in Nixpkgs as
# files.
assert stdenv.hostPlatform.isLinux;
let
# Dirty hack to make sure that `version` & `src` have
# `<nixpkgs/pkgs/os-specific/linux/kernel/linux-x.y.nix>` as position
+1
View File
@@ -55,5 +55,6 @@ stdenv.mkDerivation rec {
mic92
mbbx6spp
];
platforms = lib.platforms.linux;
};
}
+11 -11
View File
@@ -21,14 +21,14 @@ let
label = "test";
};
in
pkgs.recurseIntoAttrs {
nixos-test =
(pkgs.nixos {
system.nixos = dummyVersioning;
boot.loader.grub.enable = false;
fileSystems."/".device = "/dev/null";
system.stateVersion = lib.trivial.release;
}).toplevel;
}
lib.optionalAttrs (stdenv.hostPlatform.isLinux) (
pkgs.recurseIntoAttrs {
nixos-test =
(pkgs.nixos {
system.nixos = dummyVersioning;
boot.loader.grub.enable = false;
fileSystems."/".device = "/dev/null";
system.stateVersion = lib.trivial.release;
}).toplevel;
}
)