Merge pull request #70157 from teto/lib_kernel

Add lib.kernel
This commit is contained in:
Silvan Mosberger
2020-03-12 23:53:42 +01:00
committed by GitHub
5 changed files with 20 additions and 10 deletions
@@ -16,11 +16,12 @@
}:
with stdenv.lib;
with import ../../../../lib/kernel.nix { inherit (stdenv) lib; inherit version; };
with stdenv.lib.kernel;
with (stdenv.lib.kernel.whenHelpers version);
let
# configuration items have to be part of a subattrs
flattenKConf = nested: mapAttrs (_: head) (zipAttrs (attrValues nested));