Skip to content

Meta issue about kernel features dependencies #41103

@teto

Description

@teto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions