aggregateModules: Restrict pathsToLink

It's not *entirely* clear if `depmod.d` is actually something we want
here, but it has always been possible for module packages to add files
to this, and conceptually it makes at least *some* sense, so let's leave
it.
This commit is contained in:
Will Fancher
2026-10-21 21:09:26 -04:00
parent ff3b622b9b
commit 4c2edecc43

View File

@@ -11,6 +11,11 @@ buildEnv {
paths = modules;
pathsToLink = [
"/lib/modules"
"/etc/depmod.d"
];
postBuild = ''
source ${stdenvNoCC}/setup