linux: remove assert on linux

Asserting the hostplatform for `linux` is bad, because it can't be
caught by CI. For the `linux` package itself, it doesn't make a
difference, because it also has `meta.platforms = linux` set, so this
will fail evaluation - and in a way that can nicely be caught by CI.

+12 -13
-2
pkgs/os-specific/linux/kernel/generic.nix
··· 94 94 # cgit) that are needed here should be included directly in Nixpkgs as 95 95 # files. 96 96 97 - assert stdenv.hostPlatform.isLinux; 98 - 99 97 let 100 98 # Dirty hack to make sure that `version` & `src` have 101 99 # `<nixpkgs/pkgs/os-specific/linux/kernel/linux-x.y.nix>` as position
+1
pkgs/os-specific/linux/ply/default.nix
··· 55 55 mic92 56 56 mbbx6spp 57 57 ]; 58 + platforms = lib.platforms.linux; 58 59 }; 59 60 }
+11 -11
pkgs/test/nixos-functions/default.nix
··· 21 21 label = "test"; 22 22 }; 23 23 in 24 - pkgs.recurseIntoAttrs { 25 - 26 - nixos-test = 27 - (pkgs.nixos { 28 - system.nixos = dummyVersioning; 29 - boot.loader.grub.enable = false; 30 - fileSystems."/".device = "/dev/null"; 31 - system.stateVersion = lib.trivial.release; 32 - }).toplevel; 33 - 34 - } 24 + lib.optionalAttrs (stdenv.hostPlatform.isLinux) ( 25 + pkgs.recurseIntoAttrs { 26 + nixos-test = 27 + (pkgs.nixos { 28 + system.nixos = dummyVersioning; 29 + boot.loader.grub.enable = false; 30 + fileSystems."/".device = "/dev/null"; 31 + system.stateVersion = lib.trivial.release; 32 + }).toplevel; 33 + } 34 + )