Repository navigation
zfs: make kernel packages overridable - #230498
Conversation
|
2f5b656 to
94f4ff9
Compare
|
@ofborg test zfs |
We do not have callPackages (notice the s) for kernel packages. Hence it's not override zfs dependencies as we do not have an override function. This is fixed by splitting of the file into a generic builder function and 2 files for zfsStable and zfsUnstable.
| latestCompatibleLinuxPackages = | ||
| if stdenv'.isx86_64 | ||
| then linuxKernel.packages.linux_6_1 | ||
| else linuxKernel.packages.linux_6_2; |
There was a problem hiding this comment.
Did you intentionally flip the then and else? I'm currently using zfs with kernel 6.2 and this would mean a downgrade to 6.1 for me.
|
Was it intentional to mark kernel packages broken on all versions except |
Pretty sure it wasn't guys. If it affects you, please open a PR to fasten things up, add Mic92 as a reviewer, and if he has a better solution or disagrees he'll reply. Remember that nixpkgs is complicated, giant and error-prone, so be kind and offer help before shouting. |
|
I apologize if my comment came of passive aggressive. That wasn't my intention. I opened #232460 to fix this. |
|
Basically, I want to override the params in generic.nix but repl says otherwise. Prolly, I'm missing the point. |
This should work. All args are forwarded to generic.nix as well. I am actually doing this for my systems. |
|
zfs = import (modulesPath + "../generic.nix") { .. } { .. } works for me. The two discrete attrSets fun was surprising though, any particular reason for having such, could they be merged? |
|
Or better, should I ask, how to override a parameter in the first set and how to override one in the latter set? |
|
I can attest that If you need to override it inside a |
|
Yes I am aware of extend and friends. I wonder if we can find a way to implement a method to override both kernel/user derivations at the same time since one of them is under linuxPackages. |
We do not have callPackages (notice the s) for kernel packages. Hence it's not override zfs dependencies as we do not have an override function. This is fixed by splitting of the file into a generic builder function and 2 files for zfsStable and zfsUnstable.
Description of changes
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)