netatop: pass makeFlags and moduleBuildDependencies from kernel
This commit is contained in:
parent
4315bccd6a
commit
45e662bd95
|
@ -12,6 +12,7 @@ stdenv.mkDerivation {
|
||||||
sha256 = "0qjw8glfdmngfvbn1w63q128vxdz2jlabw13y140ga9i5ibl6vvk";
|
sha256 = "0qjw8glfdmngfvbn1w63q128vxdz2jlabw13y140ga9i5ibl6vvk";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||||
buildInputs = [ kmod zlib ];
|
buildInputs = [ kmod zlib ];
|
||||||
|
|
||||||
hardeningDisable = [ "pic" ];
|
hardeningDisable = [ "pic" ];
|
||||||
|
@ -36,6 +37,8 @@ stdenv.mkDerivation {
|
||||||
kmod=${kmod} substituteAllInPlace netatop.service
|
kmod=${kmod} substituteAllInPlace netatop.service
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
makeFlags = kernel.makeFlags;
|
||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
mkdir -p $out/lib/systemd/system $out/bin $out/sbin $out/share/man/man{4,8}
|
mkdir -p $out/lib/systemd/system $out/bin $out/sbin $out/share/man/man{4,8}
|
||||||
mkdir -p $out/lib/modules/${kernel.modDirVersion}/extra
|
mkdir -p $out/lib/modules/${kernel.modDirVersion}/extra
|
||||||
|
|
Loading…
Reference in a new issue