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