diff --git a/pkgs/by-name/op/open-vm-tools/package.nix b/pkgs/by-name/op/open-vm-tools/package.nix index 8a039edbfba6..8ce2bd828869 100644 --- a/pkgs/by-name/op/open-vm-tools/package.nix +++ b/pkgs/by-name/op/open-vm-tools/package.nix @@ -39,6 +39,15 @@ xmlsec, withX ? true, }: +let + inherit (lib) + licenses + maintainers + makeBinPath + optional + optionals + ; +in stdenv.mkDerivation (finalAttrs: { pname = "open-vm-tools"; @@ -83,7 +92,7 @@ stdenv.mkDerivation (finalAttrs: { xercesc xmlsec ] - ++ lib.optionals withX [ + ++ optionals withX [ gdk-pixbuf-xlib gtk3 gtkmm3 @@ -127,7 +136,7 @@ stdenv.mkDerivation (finalAttrs: { "--without-kernel-modules" "--with-udev-rules-dir=${placeholder "out"}/lib/udev/rules.d" "--with-fuse=fuse3" - ] ++ lib.optional (!withX) "--without-x"; + ] ++ optional (!withX) "--without-x"; enableParallelBuilding = true; @@ -138,7 +147,7 @@ stdenv.mkDerivation (finalAttrs: { postInstall = '' wrapProgram "$out/etc/vmware-tools/scripts/vmware/network" \ --prefix PATH ':' "${ - lib.makeBinPath [ + makeBinPath [ iproute2 dbus systemd @@ -148,7 +157,7 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace "$out/lib/udev/rules.d/99-vmware-scsi-udev.rules" --replace-fail "/bin/sh" "${bash}/bin/sh" ''; - meta = with lib; { + meta = { homepage = "https://github.com/vmware/open-vm-tools"; changelog = "https://github.com/vmware/open-vm-tools/releases/tag/stable-${finalAttrs.version}"; description = "Set of tools for VMWare guests to improve host-guest interaction";