open-vm-tools: Fix rebooting on NixOS

This commit is contained in:
Wout Mertens 2017-10-23 13:59:37 +02:00 committed by GitHub
parent fd7fe95ee8
commit 7144f88c48

View File

@ -36,6 +36,9 @@ stdenv.mkDerivation rec {
# Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror.
sed 1i'#include <sys/sysmacros.h>' -i lib/wiper/wiperPosix.c
# Make reboot work, shutdown is not in /sbin on NixOS
sed -i 's,/sbin/shutdown,shutdown,' lib/system/systemLinux.c
'';
configureFlags = [ "--without-kernel-modules" "--without-xmlsecurity" ]