2023-05-24 13:37:59 +00:00
|
|
|
{ callPackage
|
|
|
|
, kernel ? null
|
|
|
|
, stdenv
|
|
|
|
, linuxKernel
|
2023-07-15 17:15:38 +00:00
|
|
|
, removeLinuxDRM ? false
|
2024-01-02 11:29:13 +00:00
|
|
|
, nixosTests
|
2023-05-24 13:37:59 +00:00
|
|
|
, ...
|
|
|
|
} @ args:
|
|
|
|
|
|
|
|
let
|
|
|
|
stdenv' = if kernel == null then stdenv else kernel.stdenv;
|
|
|
|
in
|
|
|
|
callPackage ./generic.nix args {
|
2024-01-02 11:29:13 +00:00
|
|
|
# You have to ensure that in `pkgs/top-level/linux-kernels.nix`
|
|
|
|
# this attribute is the correct one for this package.
|
|
|
|
kernelModuleAttribute = "zfsUnstable";
|
2023-05-24 13:37:59 +00:00
|
|
|
# check the release notes for compatible kernels
|
2024-01-02 11:29:13 +00:00
|
|
|
kernelCompatible =
|
|
|
|
if stdenv'.isx86_64 || removeLinuxDRM
|
|
|
|
then kernel.kernelOlder "6.7"
|
2023-05-24 13:37:59 +00:00
|
|
|
else kernel.kernelOlder "6.2";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
latestCompatibleLinuxPackages = if stdenv'.isx86_64 || removeLinuxDRM
|
2024-01-02 11:29:13 +00:00
|
|
|
then linuxKernel.packages.linux_6_6
|
2023-10-19 13:55:26 +00:00
|
|
|
else linuxKernel.packages.linux_6_1;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
# this package should point to a version / git revision compatible with the latest kernel release
|
|
|
|
# IMPORTANT: Always use a tagged release candidate or commits from the
|
|
|
|
# zfs-<version>-staging branch, because this is tested by the OpenZFS
|
|
|
|
# maintainers.
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.2.2";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
isUnstable = true;
|
2024-01-02 11:29:13 +00:00
|
|
|
tests = [
|
|
|
|
nixosTests.zfs.unstable
|
|
|
|
];
|
|
|
|
|
|
|
|
hash = "sha256-CqhETAwhWMhbld5ib3Rz1dxms+GQbLwjEZw/V7U/2nE=";
|
2023-05-24 13:37:59 +00:00
|
|
|
}
|