mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
48665a4150
EOLed by upstream, doesn't receive any patches anymore, so let's drop it. Currently depends on #211886 which bumps the latest compatible ZFS version to 6.1. Also, clean up some old aliases.
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{ system ? builtins.currentSystem
|
|
, config ? { }
|
|
, pkgs ? import ../.. { inherit system config; }
|
|
}@args:
|
|
|
|
with pkgs.lib;
|
|
|
|
let
|
|
testsForLinuxPackages = linuxPackages: (import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "kernel-${linuxPackages.kernel.version}";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ nequissimus atemu ];
|
|
};
|
|
|
|
nodes.machine = { ... }:
|
|
{
|
|
boot.kernelPackages = linuxPackages;
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
assert "Linux" in machine.succeed("uname -s")
|
|
assert "${linuxPackages.kernel.modDirVersion}" in machine.succeed("uname -a")
|
|
'';
|
|
}) args);
|
|
kernels = pkgs.linuxKernel.vanillaPackages // {
|
|
inherit (pkgs.linuxKernel.packages)
|
|
linux_4_14_hardened
|
|
linux_4_19_hardened
|
|
linux_5_4_hardened
|
|
linux_5_10_hardened
|
|
linux_5_15_hardened
|
|
linux_6_1_hardened
|
|
|
|
linux_testing;
|
|
};
|
|
|
|
in mapAttrs (_: lP: testsForLinuxPackages lP) kernels // {
|
|
inherit testsForLinuxPackages;
|
|
|
|
testsForKernel = kernel: testsForLinuxPackages (pkgs.linuxPackagesFor kernel);
|
|
}
|