@@ -176,6 +176,11 @@ let
176176 maintainers = with maintainers; [ hmenke jcumming jonringer wizeman fpletz globin mic92 ];
177177 };
178178 };
179+
180+ linux-rt-patch = fetchpatch {
181+ url = "https://github.com/openzfs/zfs/commit/ab4fb9b74e9d089fc9a261c4f41e19697ad6a4ca.patch";
182+ sha256 = "1nrxmb4rhrkgncav6dzwm66l0700fi72qkkcs0w6pkm850srws36";
183+ };
179184in {
180185 # also check if kernel version constraints in
181186 # ./nixos/modules/tasks/filesystems/zfs.nix needs
@@ -188,6 +193,8 @@ in {
188193 version = "2.0.0";
189194
190195 sha256 = "1kriz6pg8wj98izvjc60wp23lgcp4k3mzhpkgj74np73rzgy6v8r";
196+
197+ extraPatches = [ linux-rt-patch ];
191198 };
192199
193200 zfsUnstable = common {
@@ -198,5 +205,7 @@ in {
198205 version = "2.0.0";
199206
200207 sha256 = "1kriz6pg8wj98izvjc60wp23lgcp4k3mzhpkgj74np73rzgy6v8r";
208+
209+ extraPatches = [ linux-rt-patch ];
201210 };
202211}