summaryrefslogtreecommitdiff
path: root/overlays/zfs.nix
blob: 1da1005048f92958c3ef73b39a002b528c6f5c96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
final: prev: {
  linuxKernel = prev.linuxKernel // {
    packagesFor = kernel_: (prev.linuxKernel.packagesFor kernel_).extend (self: super: {
      zfsUnstable = super.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 = final.linuxPackages_5_15;
        });
      });
    });
  };
  # linuxPackages_latest = final.linuxPackages_5_15;
}