virtualbox: remove components/VBoxREM.so when

hardened or headless is enabled
arch does it as well
1b2aaf4113/trunk/PKGBUILD (L184)
This commit is contained in:
Artturin 2021-09-08 19:06:33 +03:00
parent a2c2a38f70
commit e740711cf6

View File

@ -200,6 +200,11 @@ in stdenv.mkDerivation {
done
''}
# https://github.com/NixOS/nixpkgs/issues/137104
${optionalString (enableHardening || headless) ''
rm $libexec/components/VBoxREM.so
''}
cp -rv out/linux.*/${buildType}/bin/src "$modsrc"
'';