Issue description
I develop on a custom kernel so I like to keep its configuration tight to speed up compilation time.
I've recently been dealing with packages that wouldn't work without specific kernel features.
I would like to add to packages a field kernelFeatures or requiredLinuxFeatures.
mininet = stdenv.mkDerivation {
name="mininet";
...
requiredLinuxFeatures = [ "NETNS" ]
}
When this package is added to configuration.nix it should check that the kernel config has "NETNS" enabled. I don't believe it's possible to enable it automatically yet since we don't know the dependencies between the different kernel features (setting CONFIG_NETNS should enable CONFIG_NET but we can't do that yet).
Checking is easier though since one can grep the config and look for NETNS value.
Hopefully someone can build the kernel dependency into the structured linux config #12158
Examples:
- usage of perf probe with modules may require COMPRESS off
Issue description
I develop on a custom kernel so I like to keep its configuration tight to speed up compilation time.
I've recently been dealing with packages that wouldn't work without specific kernel features.
I would like to add to packages a field
kernelFeaturesorrequiredLinuxFeatures.When this package is added to configuration.nix it should check that the kernel config has "NETNS" enabled. I don't believe it's possible to enable it automatically yet since we don't know the dependencies between the different kernel features (setting CONFIG_NETNS should enable CONFIG_NET but we can't do that yet).
Checking is easier though since one can grep the config and look for NETNS value.
Hopefully someone can build the kernel dependency into the structured linux config #12158
Examples: