jool: prepend kernel.makeFlags to makeFlags

This commit is contained in:
Nick Cao 2022-02-10 10:12:55 +08:00
parent 0341ed782c
commit fd5ead0eed
No known key found for this signature in database
GPG key ID: 068A56CEF48FA2C1

View file

@ -16,13 +16,12 @@ stdenv.mkDerivation {
sed -e 's@/lib/modules/\$(.*)@${kernel.dev}/lib/modules/${kernel.modDirVersion}@' -i src/mod/*/Makefile
'';
buildPhase = ''
make -C src/mod
'';
makeFlags = kernel.makeFlags ++ [
"-C src/mod"
"INSTALL_MOD_PATH=${placeholder "out"}"
];
installPhase = ''
make -C src/mod modules_install INSTALL_MOD_PATH=$out
'';
installTargets = "modules_install";
meta = with lib; {
homepage = "https://www.jool.mx/";