diff options
author | Wout Mertens <Wout.Mertens@gmail.com> | 2017-10-23 13:59:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-23 13:59:37 +0200 |
commit | 7144f88c482df8baf1d045f47f8f8d1ed9090175 (patch) | |
tree | 95b4fcc58e34b68ff9cd5262f8e17d89a812791f | |
parent | fd7fe95ee8e1515751d993432da767ccdf0ed319 (diff) |
open-vm-tools: Fix rebooting on NixOS
-rw-r--r-- | pkgs/applications/virtualization/open-vm-tools/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/open-vm-tools/default.nix b/pkgs/applications/virtualization/open-vm-tools/default.nix index bc280823a3ce..c7f8ea696b57 100644 --- a/pkgs/applications/virtualization/open-vm-tools/default.nix +++ b/pkgs/applications/virtualization/open-vm-tools/default.nix @@ -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" ] |