linux/manual-config: Use kernelPatches like generic.nix, not a plain patches list
This commit is contained in:
parent
ec587dfc25
commit
4aba2bb3f5
@ -50,7 +50,7 @@ in
|
|||||||
# The kernel source (tarball, git checkout, etc.)
|
# The kernel source (tarball, git checkout, etc.)
|
||||||
src,
|
src,
|
||||||
# Any patches
|
# Any patches
|
||||||
patches ? [],
|
kernelPatches ? [],
|
||||||
# The kernel .config file
|
# The kernel .config file
|
||||||
configfile,
|
configfile,
|
||||||
# Manually specified nixexpr representing the config
|
# Manually specified nixexpr representing the config
|
||||||
@ -86,10 +86,12 @@ stdenv.mkDerivation {
|
|||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
inherit version modDirVersion config;
|
inherit version modDirVersion config kernelPatches;
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit patches src;
|
inherit src;
|
||||||
|
|
||||||
|
patches = map (p: p.patch) kernelPatches;
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
for mf in $(find -name Makefile -o -name Makefile.include -o -name install.sh); do
|
for mf in $(find -name Makefile -o -name Makefile.include -o -name install.sh); do
|
||||||
|
Loading…
Reference in New Issue
Block a user