zfs: fix build with linux-rt

This commit is contained in:
Orivej Desh 2020-12-08 16:38:30 +00:00
parent 59d8ee790e
commit 1026c02f6d

View file

@ -176,6 +176,11 @@ let
maintainers = with maintainers; [ hmenke jcumming jonringer wizeman fpletz globin mic92 ];
};
};
linux-rt-patch = fetchpatch {
url = "https://github.com/openzfs/zfs/commit/ab4fb9b74e9d089fc9a261c4f41e19697ad6a4ca.patch";
sha256 = "1nrxmb4rhrkgncav6dzwm66l0700fi72qkkcs0w6pkm850srws36";
};
in {
# also check if kernel version constraints in
# ./nixos/modules/tasks/filesystems/zfs.nix needs
@ -188,6 +193,8 @@ in {
version = "2.0.0";
sha256 = "1kriz6pg8wj98izvjc60wp23lgcp4k3mzhpkgj74np73rzgy6v8r";
extraPatches = [ linux-rt-patch ];
};
zfsUnstable = common {
@ -198,5 +205,7 @@ in {
version = "2.0.0";
sha256 = "1kriz6pg8wj98izvjc60wp23lgcp4k3mzhpkgj74np73rzgy6v8r";
extraPatches = [ linux-rt-patch ];
};
}