summaryrefslogtreecommitdiff
path: root/overlays
diff options
context:
space:
mode:
Diffstat (limited to 'overlays')
-rw-r--r--overlays/zfs.nix22
1 files changed, 15 insertions, 7 deletions
diff --git a/overlays/zfs.nix b/overlays/zfs.nix
index 1da10050..7291e2e4 100644
--- a/overlays/zfs.nix
+++ b/overlays/zfs.nix
@@ -1,13 +1,21 @@
1final: prev: { 1final: prev:
2let
3 overrides = {
4 "sha256-UUuJa5w/GsEvsgH/BnXFsP/dsOt9wwmPqKzDxLPrhiY=" = { self }: {
5 broken = !(self.kernel.kernelAtLeast "3.10" && self.kernel.kernelOlder "5.16");
6 latestCompatibleLinuxPackages = final.linuxPackages_5_15;
7 };
8 };
9in {
2 linuxKernel = prev.linuxKernel // { 10 linuxKernel = prev.linuxKernel // {
3 packagesFor = kernel_: (prev.linuxKernel.packagesFor kernel_).extend (self: super: { 11 packagesFor = kernel_: (prev.linuxKernel.packagesFor kernel_).extend (self: super: rec {
4 zfsUnstable = super.zfsUnstable.overrideAttrs (oldAttrs: { 12 zfsUnstable = super.zfsUnstable.overrideAttrs (oldAttrs: {
5 meta = oldAttrs.meta // (assert (oldAttrs.src.outputHash == "sha256-UUuJa5w/GsEvsgH/BnXFsP/dsOt9wwmPqKzDxLPrhiY="); rec { 13 meta = oldAttrs.meta // (overrides.${oldAttrs.src.outputHash} or (_: {})) { inherit self; };
6 broken = !(self.kernel.kernelAtLeast "3.10" && self.kernel.kernelOlder "5.16"); 14 });
7 latestCompatibleLinuxPackages = final.linuxPackages_5_15; 15 zfsStable = super.zfsUnstable.overrideAttrs (oldAttrs: {
8 }); 16 meta = oldAttrs.meta // (overrides.${oldAttrs.src.outputHash} or (_: {})) { inherit self; };
9 }); 17 });
18 zfs = zfsStable;
10 }); 19 });
11 }; 20 };
12 # linuxPackages_latest = final.linuxPackages_5_15;
13} 21}