Skip to content

Commit

Permalink
open-vm-tools: Fix rebooting on NixOS
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens committed Oct 23, 2017
1 parent fd7fe95 commit 7144f88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/applications/virtualization/open-vm-tools/default.nix
Expand Up @@ -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" ]
Expand Down

0 comments on commit 7144f88

Please sign in to comment.