Merge pull request #334396 from kjeremy/jkolb/open-vm-tools-by-name

open-vm-tools: move to package by name
This commit is contained in:
Peder Bergebakken Sundt 2024-08-16 03:13:58 +02:00 committed by GitHub
commit e2855c6617
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 92 additions and 73 deletions

View File

@ -1,42 +1,43 @@
{ stdenv
, lib
, fetchFromGitHub
, makeWrapper
, autoreconfHook
, bash
, fuse3
, libmspack
, openssl
, pam
, xercesc
, icu
, libdnet
, procps
, libtirpc
, rpcsvc-proto
, libX11
, libXext
, libXinerama
, libXi
, libXrender
, libXrandr
, libXtst
, libxcrypt
, libxml2
, pkg-config
, glib
, gdk-pixbuf-xlib
, gtk3
, gtkmm3
, iproute2
, dbus
, systemd
, which
, libdrm
, udev
, util-linux
, xmlsec
, withX ? true
{
stdenv,
lib,
fetchFromGitHub,
makeWrapper,
autoreconfHook,
bash,
fuse3,
libmspack,
openssl,
pam,
xercesc,
icu,
libdnet,
procps,
libtirpc,
rpcsvc-proto,
libX11,
libXext,
libXinerama,
libXi,
libXrender,
libXrandr,
libXtst,
libxcrypt,
libxml2,
pkg-config,
glib,
gdk-pixbuf-xlib,
gtk3,
gtkmm3,
iproute2,
dbus,
systemd,
which,
libdrm,
udev,
util-linux,
xmlsec,
withX ? true,
}:
stdenv.mkDerivation (finalAttrs: {
@ -52,7 +53,10 @@ stdenv.mkDerivation (finalAttrs: {
sourceRoot = "${finalAttrs.src.name}/open-vm-tools";
outputs = [ "out" "dev" ];
outputs = [
"out"
"dev"
];
nativeBuildInputs = [
autoreconfHook
@ -60,7 +64,8 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config
];
buildInputs = [
buildInputs =
[
fuse3
glib
icu
@ -77,7 +82,8 @@ stdenv.mkDerivation (finalAttrs: {
udev
xercesc
xmlsec
] ++ lib.optionals withX [
]
++ lib.optionals withX [
gdk-pixbuf-xlib
gtk3
gtkmm3
@ -131,7 +137,14 @@ stdenv.mkDerivation (finalAttrs: {
postInstall = ''
wrapProgram "$out/etc/vmware-tools/scripts/vmware/network" \
--prefix PATH ':' "${lib.makeBinPath [ iproute2 dbus systemd which ]}"
--prefix PATH ':' "${
lib.makeBinPath [
iproute2
dbus
systemd
which
]
}"
substituteInPlace "$out/lib/udev/rules.d/99-vmware-scsi-udev.rules" --replace "/bin/sh" "${bash}/bin/sh"
'';
@ -144,7 +157,14 @@ stdenv.mkDerivation (finalAttrs: {
better management of, and seamless user interactions with, guests.
'';
license = licenses.gpl2;
platforms = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
maintainers = with maintainers; [ joamaki kjeremy ];
platforms = [
"x86_64-linux"
"i686-linux"
"aarch64-linux"
];
maintainers = with maintainers; [
joamaki
kjeremy
];
};
})

View File

@ -26872,7 +26872,6 @@ with pkgs;
ocf-resource-agents = callPackage ../os-specific/linux/ocf-resource-agents { };
open-vm-tools = callPackage ../applications/virtualization/open-vm-tools { };
open-vm-tools-headless = open-vm-tools.override { withX = false; };
oxtools = callPackage ../os-specific/linux/oxtools { };