mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-03-19 10:32:40 +00:00
zfs: add latestCompatibleLinuxPackages option
This commit is contained in:
parent
cc0cf4b858
commit
e3074263be
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue