summaryrefslogtreecommitdiff
path: root/overlays/zfs.nix
blob: 843f6e9594574ed7cb0630b6c00ca4c449fd2957 (plain)
1
2
3
4
5
6
7
8
9
10
final: prev: {
  linuxPackages_latest = prev.linuxPackages_latest.extend (self: super: {
    zfsUnstable = prev.zfsUnstable.overrideAttrs (oldAttrs: {
      meta = oldAttrs.meta // (assert (oldAttrs.src.outputHash == "sha256-UUuJa5w/GsEvsgH/BnXFsP/dsOt9wwmPqKzDxLPrhiY="); rec {
        broken = !(self.kernel.kernelAtLeast "3.10" && self.kernel.kernelOlder "5.16");
        latestCompatibleLinuxPackages = if !broken then self.kernel else oldAttrs.latestCompatibleLinuxPackages;
      });
    });
  });
}