diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-12-13 15:38:16 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-12-13 15:38:16 +0100 |
commit | 570df959e20b32884cb8ba62a6509257dbf20ce7 (patch) | |
tree | bd1027f737cd751993b14f0809947847e20fdac3 | |
parent | 607959979ffbe6c6c8108febc18f928fad2ced52 (diff) | |
download | nixos-570df959e20b32884cb8ba62a6509257dbf20ce7.tar nixos-570df959e20b32884cb8ba62a6509257dbf20ce7.tar.gz nixos-570df959e20b32884cb8ba62a6509257dbf20ce7.tar.bz2 nixos-570df959e20b32884cb8ba62a6509257dbf20ce7.tar.xz nixos-570df959e20b32884cb8ba62a6509257dbf20ce7.zip |
...
-rw-r--r-- | overlays/zfs.nix | 22 |
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 @@ | |||
1 | final: prev: { | 1 | final: prev: |
2 | let | ||
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 | }; | ||
9 | in { | ||
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 | } |