2023-05-07 10:55:24 +00:00
|
|
|
{ callPackage
|
|
|
|
, kernel ? null
|
|
|
|
, stdenv
|
|
|
|
, linuxKernel
|
2023-11-23 15:15:18 +00:00
|
|
|
, nixosTests
|
2024-07-16 08:14:03 +00:00
|
|
|
, fetchpatch
|
2023-05-07 10:55:24 +00:00
|
|
|
, ...
|
|
|
|
} @ args:
|
|
|
|
|
|
|
|
let
|
|
|
|
stdenv' = if kernel == null then stdenv else kernel.stdenv;
|
|
|
|
in
|
|
|
|
callPackage ./generic.nix args {
|
2023-11-23 15:15:18 +00:00
|
|
|
# You have to ensure that in `pkgs/top-level/linux-kernels.nix`
|
|
|
|
# this attribute is the correct one for this package.
|
2024-02-27 23:27:39 +00:00
|
|
|
kernelModuleAttribute = "zfs_unstable";
|
2023-05-07 10:55:24 +00:00
|
|
|
# check the release notes for compatible kernels
|
2024-07-16 08:14:03 +00:00
|
|
|
kernelCompatible = kernel.kernelOlder "6.11";
|
2023-03-29 12:13:21 +00:00
|
|
|
|
2024-07-16 08:14:03 +00:00
|
|
|
latestCompatibleLinuxPackages = linuxKernel.packages.linux_6_9;
|
2023-05-07 10:55:24 +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-07-15 20:56:43 +00:00
|
|
|
version = "2.2.4-unstable-2024-07-15";
|
|
|
|
rev = "/54ef0fdf60a8e7633c38cb46e1f5bcfcec792f4e";
|
2023-05-07 10:55:24 +00:00
|
|
|
|
|
|
|
isUnstable = true;
|
2023-11-23 15:15:18 +00:00
|
|
|
tests = [
|
|
|
|
nixosTests.zfs.unstable
|
|
|
|
];
|
2023-11-26 18:15:39 +00:00
|
|
|
|
2024-07-16 08:14:03 +00:00
|
|
|
# 6.10 patches approved+merged to the default branch, not in staging yet
|
|
|
|
# https://github.com/openzfs/zfs/pull/16250
|
|
|
|
extraPatches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/openzfs/zfs/commit/7ca7bb7fd723a91366ce767aea53c4f5c2d65afb.patch";
|
|
|
|
hash = "sha256-vUX4lgywh5ox6DjtIfeC90KjbLoW3Ol0rK/L65jOENo=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/openzfs/zfs/commit/e951dba48a6330aca9c161c50189f6974e6877f0.patch";
|
|
|
|
hash = "sha256-A1h0ZLY+nlReBMTlEm3O9kwBqto1cgsZdnJsHpR6hw0=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/openzfs/zfs/commit/b409892ae5028965a6fe98dde1346594807e6e45.patch";
|
|
|
|
hash = "sha256-pW1b8ktglFhwVRapTB5th9UCyjyrPmCVPg53nMENax8=";
|
|
|
|
})
|
|
|
|
|
|
|
|
];
|
|
|
|
|
2024-07-15 20:56:43 +00:00
|
|
|
hash = "sha256-7vZeIzA2yDW/gSCcS2AM3+C9qbRIbA9XbCRUxikW2+M=";
|
2023-05-07 10:55:24 +00:00
|
|
|
}
|