f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
62 lines
2.3 KiB
Nix
62 lines
2.3 KiB
Nix
{ stdenv, lib, fetchFromGitHub, makeWrapper, autoreconfHook,
|
|
fuse, libmspack, openssl, pam, xercesc, icu, libdnet, procps,
|
|
libX11, libXext, libXinerama, libXi, libXrender, libXrandr, libXtst,
|
|
pkgconfig, glib, gtk, gtkmm, iproute, dbus, systemd, which,
|
|
withX ? true }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "open-vm-tools-${version}";
|
|
version = "10.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vmware";
|
|
repo = "open-vm-tools";
|
|
rev = "stable-${version}";
|
|
sha256 = "1qzk4mvw618ca4j9agsfpqch9jgwghvdc4rpkvlyz8kirvh9iniz";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/open-vm-tools";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook makeWrapper pkgconfig ];
|
|
buildInputs = [ fuse glib icu libdnet libmspack openssl pam procps xercesc ]
|
|
++ lib.optionals withX [ gtk gtkmm libX11 libXext libXinerama libXi libXrender libXrandr libXtst ];
|
|
|
|
patches = [ ./recognize_nixos.patch ];
|
|
postPatch = ''
|
|
# Build bugfix for 10.1.0, stolen from Arch PKGBUILD
|
|
mkdir -p common-agent/etc/config
|
|
sed -i 's|.*common-agent/etc/config/Makefile.*|\\|' 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
|
|
sed -i 's,$(PAM_PREFIX),''${prefix}/$(PAM_PREFIX),' services/vmtoolsd/Makefile.am
|
|
sed -i 's,$(UDEVRULESDIR),''${prefix}/$(UDEVRULESDIR),' udev/Makefile.am
|
|
|
|
# Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror.
|
|
sed 1i'#include <sys/sysmacros.h>' -i lib/wiper/wiperPosix.c
|
|
'';
|
|
|
|
configureFlags = [ "--without-kernel-modules" "--without-xmlsecurity" ]
|
|
++ lib.optional (!withX) "--without-x";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postInstall = ''
|
|
wrapProgram "$out/etc/vmware-tools/scripts/vmware/network" \
|
|
--prefix PATH ':' "${lib.makeBinPath [ iproute dbus systemd which ]}"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|