Andrew Marshall 5d2750268b zfs: verify kernel compatibility against META
Switch to specifying the Kernel compatibility in the same form as in the
ZFS source’s `META` file. This then allows checking it against what’s in
`META` to remove the need to manually check, and so reduce the cognitive
load and change of mistakes when performing updates.

As the “max” version is indeed a compatible version, we need to
increment that for the comparison when using `versionOlder`.

One side-effect here is that it makes it not possible to override the
specified compatibility. We will “fix” this soon.
2025-08-01 08:28:44 -04:00

34 lines
702 B
Nix

{
callPackage,
lib,
nixosTests,
stdenv,
...
}@args:
callPackage ./generic.nix args {
# You have to ensure that in `pkgs/top-level/linux-kernels.nix`
# this attribute is the correct one for this package.
kernelModuleAttribute = "zfs_2_3";
kernelMinSupportedMajorMinor = "4.18";
kernelMaxSupportedMajorMinor = "6.15";
# this package should point to the latest release.
version = "2.3.3";
tests = {
inherit (nixosTests.zfs) series_2_3;
}
// lib.optionalAttrs stdenv.isx86_64 {
inherit (nixosTests.zfs) installer;
};
maintainers = with lib.maintainers; [
adamcstephens
amarshall
];
hash = "sha256-NXAbyGBfpzWfm4NaP1/otTx8fOnoRV17343qUMdQp5U=";
}