diff --git a/pkgs/os-specific/linux/zfs/2_4.nix b/pkgs/os-specific/linux/zfs/2_4.nix index 6f4cbc6861d4..7de7664f4dff 100644 --- a/pkgs/os-specific/linux/zfs/2_4.nix +++ b/pkgs/os-specific/linux/zfs/2_4.nix @@ -18,6 +18,15 @@ callPackage ./generic.nix args { # this package should point to the latest release. version = "2.4.3"; + extraPatches = [ + # https://github.com/openzfs/zfs/issues/18366 + # dedup data corruption fix unreleased as of OpenZFS 2.4.3 + (fetchpatch { + url = "https://github.com/openzfs/zfs/commit/6fb72fda0f60d9efb591e320f83f78b19ec451cc.patch?full_index=1"; + hash = "sha256-UuSVmO61Ux5S3F+JAtRnHyeVS4EFobDTKBuD5s8PI+k="; + }) + ]; + tests = { inherit (nixosTests.zfs) series_2_4; }