git.iko.soy/typeable/nixpkgs
on master help sign in
kernel/linuxManualConfig: add variant metadata
commit613adb0e8809c51e02e6361c2e88068b6ec079bb authorJonathan Ringer <jonringer117@gmail.com> dateSun 1 Nov 2020, 14:05 (6 years ago) parent8be87d0
1 file changed+10
pkgs/os-specific/linux/kernel/manual-config.nix+10
pkgs/os-specific/linux/kernel/manual-config.nix+10
@@ -34,6 +34,13 @@ in {
3434 randstructSeed ? "",
3535 # Use defaultMeta // extraMeta
3636 extraMeta ? {},
37+
38+ # for module compatibility
39+ isXen ? features.xen_dom0 or false,
40+ isZen ? false,
41+ isLibre ? false,
42+ isHardened ? false,
43+
3744 # Whether to utilize the controversial import-from-derivation feature to parse the config
3845 allowImportFromDerivation ? false,
3946 # ignored
@@ -86,6 +93,9 @@ let
8693 passthru = {
8794 inherit version modDirVersion config kernelPatches configfile
8895 moduleBuildDependencies stdenv;
96+ inherit isXen isZen isHardened isLibre;
97+ kernelOlder = stdenv.lib.versionOlder version;
98+ kernelAtLeast = stdenv.lib.versionAtLeast version;
8999 };
90100
91101 inherit src;