3
0
Fork 0
forked from mirrors/nixpkgs

open-vm-tools: fixes host VMware errors

This commit is contained in:
Joaquim Pedro França Simão 2016-04-23 01:08:06 +00:00 committed by zimbatm
parent 0ecef73966
commit 133dc10e5a
2 changed files with 11 additions and 1 deletions

View file

@ -25,6 +25,8 @@ in
serviceConfig.ExecStart = "${open-vm-tools}/bin/vmtoolsd";
};
environment.etc."vmware-tools".source = "${pkgs.open-vm-tools}/etc/vmware-tools/*";
services.xserver = {
videoDrivers = mkOverride 50 [ "vmware" ];

View file

@ -1,7 +1,7 @@
{ stdenv, lib, fetchFromGitHub, makeWrapper, autoreconfHook,
libmspack, openssl, pam, xercesc, icu, libdnet, procps,
xlibsWrapper, libXinerama, libXi, libXrender, libXrandr, libXtst,
pkgconfig, glib, gtk, gtkmm }:
pkgconfig, glib, gtk, gtkmm, iproute, dbus, systemd }:
let
majorVersion = "10.0";
@ -33,6 +33,14 @@ in stdenv.mkDerivation rec {
configureFlags = "--without-kernel-modules --without-xmlsecurity";
postInstall = ''
sed -i 's,which ,command -v ,' "$out/etc/vmware-tools/scripts/vmware/network"
wrapProgram "$out/etc/vmware-tools/scripts/vmware/network" \
--prefix PATH ':' "${iproute}/bin" \
--prefix PATH ':' "${dbus}/bin" \
--prefix PATH ':' "${systemd}/bin"
'';
meta = with stdenv.lib; {
homepage = "https://github.com/vmware/open-vm-tools";
description = "Set of tools for VMWare guests to improve host-guest interaction";