summary refs log tree commit diff
path: root/pkgs/applications/virtualization/open-vm-tools/default.nix
diff options
context:
space:
mode:
authorJussi Maki <jussi.maki@vilea.ch>2015-05-13 08:31:32 +0000
committerJussi Maki <jussi.maki@vilea.ch>2015-05-15 12:43:21 +0200
commit6a0d21eb86105ac8e631621e9425eabbab3c0a1d (patch)
tree057dbf6cb32b4c2e80077dc09ecc449eb35babd2 /pkgs/applications/virtualization/open-vm-tools/default.nix
parent75ebc3cf1dc1365be5a05018fc8e5409c66025cb (diff)
downloadnixpkgs-6a0d21eb86105ac8e631621e9425eabbab3c0a1d.tar
nixpkgs-6a0d21eb86105ac8e631621e9425eabbab3c0a1d.tar.gz
nixpkgs-6a0d21eb86105ac8e631621e9425eabbab3c0a1d.tar.bz2
nixpkgs-6a0d21eb86105ac8e631621e9425eabbab3c0a1d.tar.lz
nixpkgs-6a0d21eb86105ac8e631621e9425eabbab3c0a1d.tar.xz
nixpkgs-6a0d21eb86105ac8e631621e9425eabbab3c0a1d.tar.zst
nixpkgs-6a0d21eb86105ac8e631621e9425eabbab3c0a1d.zip
VMWare guest support and open-vm-tools package
Diffstat (limited to 'pkgs/applications/virtualization/open-vm-tools/default.nix')
-rw-r--r--pkgs/applications/virtualization/open-vm-tools/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/open-vm-tools/default.nix b/pkgs/applications/virtualization/open-vm-tools/default.nix
new file mode 100644
index 00000000000..4f32ec55a0e
--- /dev/null
+++ b/pkgs/applications/virtualization/open-vm-tools/default.nix
@@ -0,0 +1,43 @@
+{ stdenv, lib, fetchurl, makeWrapper, autoconf, automake,
+  libmspack, openssl, pam, xercesc, icu, libdnet, procps, 
+  x11, libXinerama, libXi, libXrender, libXrandr, libXtst,
+  pkgconfig, glib, gtk, gtkmm }:
+
+let
+  majorVersion = "9.10";
+  minorVersion = "0";
+  patchSet = "2476743";
+  version = "${majorVersion}.${minorVersion}-${patchSet}";
+
+in stdenv.mkDerivation {
+  name = "open-vm-tools-${version}";
+  src = fetchurl {
+    url = "mirror://sourceforge/project/open-vm-tools/open-vm-tools/stable-${majorVersion}.x/open-vm-tools-${version}.tar.gz";
+    sha256 = "15lwayrz9bpx4z12fj616hsn25m997y72licwwz7kms4sx9ssip1";
+  };
+
+  buildInputs = 
+    [ autoconf automake makeWrapper libmspack openssl pam xercesc icu libdnet procps
+      pkgconfig glib gtk gtkmm x11 libXinerama libXi libXrender libXrandr libXtst ];
+
+  patchPhase = ''
+     sed -i s,-Werror,,g configure.ac
+     sed -i 's,^confdir = ,confdir = ''${prefix},' scripts/Makefile.am
+     sed -i 's,etc/vmware-tools,''${prefix}/etc/vmware-tools,' services/vmtoolsd/Makefile.am
+  '';
+
+  preConfigure = "autoreconf";
+  configureFlags = "--without-kernel-modules --without-xmlsecurity";
+
+  meta = with stdenv.lib; {
+    homepage = "https://github.com/vmware/open-vm-tools";
+    description = "Set of tools for VMWare guests to improve host-guest interaction";
+    longDescription = ''
+      A set of services and modules that enable several features in VMware products for 
+      better management of, and seamless user interactions with, guests. 
+    '';
+    license = licenses.gpl2;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ joamaki ];
+  };
+}