zfs: add latestCompatibleLinuxPackages option

This commit is contained in:
Jonathan Ringer 2021-06-15 11:53:38 -07:00 committed by Jonathan Ringer
parent cc0cf4b858
commit e3074263be

View file

@ -14,6 +14,9 @@
# Kernel dependencies
, kernel ? null
, enablePython ? true
# for determining the latest compatible linuxPackages
, linuxPackages_5_13
}:
with lib;
@ -28,6 +31,7 @@ let
, extraPatches ? []
, rev ? "zfs-${version}"
, isUnstable ? false
, latestCompatibleLinuxPackages
, kernelCompatible ? null }:
stdenv.mkDerivation {
@ -161,7 +165,7 @@ let
outputs = [ "out" ] ++ optionals buildUser [ "dev" ];
passthru = {
inherit enableMail;
inherit enableMail latestCompatibleLinuxPackages;
tests =
if isUnstable then [
@ -196,6 +200,7 @@ in {
zfsStable = common {
# check the release notes for compatible kernels
kernelCompatible = kernel.kernelAtLeast "3.10" && kernel.kernelOlder "5.14";
latestCompatibleLinuxPackages = linuxPackages_5_13;
# this package should point to the latest release.
version = "2.1.0";
@ -206,6 +211,7 @@ in {
zfsUnstable = common {
# check the release notes for compatible kernels
kernelCompatible = kernel.kernelAtLeast "3.10" && kernel.kernelOlder "5.14";
latestCompatibleLinuxPackages = linuxPackages_5_13;
# this package should point to a version / git revision compatible with the latest kernel release
version = "2.1.0";