e286e1cfa0
- boost 167 removed on staging-next (7915d1e03f
) × boost attributes are inherited on staging (d20aa4955d
) - linux kernels were moved to linux-kernels.nix on staging-next (c62f911507
) × hardened kernels are versioned on staging (a5341beb78
) + removed linux_5_12 (e55554491d
) - conflict in node-packages – I regenerated it using node2nix from nixos-unstable (does not build on staging)
44 lines
1.4 KiB
Nix
44 lines
1.4 KiB
Nix
{ system ? builtins.currentSystem
|
|
, config ? { }
|
|
, pkgs ? import ../.. { inherit system config; }
|
|
}@args:
|
|
|
|
with pkgs.lib;
|
|
|
|
let
|
|
makeKernelTest = version: linuxPackages: (import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "kernel-${version}";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ nequissimus ];
|
|
};
|
|
|
|
machine = { ... }:
|
|
{
|
|
boot.kernelPackages = linuxPackages;
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
assert "Linux" in machine.succeed("uname -s")
|
|
assert "${linuxPackages.kernel.modDirVersion}" in machine.succeed("uname -a")
|
|
'';
|
|
}) args);
|
|
|
|
packages = pkgs.linuxKernel.packages;
|
|
in
|
|
with pkgs; {
|
|
linux_4_4 = makeKernelTest "4.4" packages.linux_4_4;
|
|
linux_4_9 = makeKernelTest "4.9" packages.linux_4_9;
|
|
linux_4_14 = makeKernelTest "4.14" packages.linux_4_14;
|
|
linux_4_19 = makeKernelTest "4.19" packages.linux_4_19;
|
|
linux_5_4 = makeKernelTest "5.4" packages.linux_5_4;
|
|
linux_5_10 = makeKernelTest "5.10" packages.linux_5_10;
|
|
linux_5_13 = makeKernelTest "5.13" packages.linux_5_13;
|
|
|
|
linux_hardened_4_14 = makeKernelTest "4.14" packages.linux_4_14_hardened;
|
|
linux_hardened_4_19 = makeKernelTest "4.19" packages.linux_4_19_hardened;
|
|
linux_hardened_5_4 = makeKernelTest "5.4" packages.linux_5_4_hardened;
|
|
linux_hardened_5_10 = makeKernelTest "5.10" packages.linux_5_10_hardened;
|
|
|
|
linux_testing = makeKernelTest "testing" linuxPackages_testing;
|
|
}
|