Tried to install it with the vmware bundle locally, but I get this:
… while calling the 'head' builtin
at /nix/store/pnylamisx45d9dig55305gpq0xj2v7ki-source/lib/attrsets.nix:922:11:
921| || pred here (elemAt values 1) (head values) then
922| head values
| ^
923| else
… while evaluating the attribute 'value'
at /nix/store/pnylamisx45d9dig55305gpq0xj2v7ki-source/lib/modules.nix:807:9:
806| in warnDeprecation opt //
807| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
808| inherit (res.defsFinal') highestPrio;
(stack trace truncated; use '--show-trace' to show the full trace)
error: builder for '/nix/store/z1fccsqrkcyk1hf2yqpag86353l0p2bd-vmware-workstation-17.5.1.drv' failed with exit code 1;
last 10 log lines:
> Installing VMware Player Setup
> Installing VMware Network Editor
> Installing VMware Tools
> cp: cannot stat 'unpacked/vmware-tools-linux/linux.iso': No such file or directory
> cp: cannot stat 'unpacked/vmware-tools-linuxPreGlibc25/linuxPreGlibc25.iso': No such file or directory
> cp: cannot stat 'unpacked/vmware-tools-netware/netware.iso': No such file or directory
> cp: cannot stat 'unpacked/vmware-tools-solaris/solaris.iso': No such file or directory
> cp: cannot stat 'unpacked/vmware-tools-winPre2k/winPre2k.iso': No such file or directory
> cp: cannot stat 'unpacked/vmware-tools-winPreVista/winPreVista.iso': No such file or directory
> cp: cannot stat 'unpacked/vmware-tools-windows/windows.iso': No such file or directory
For full logs, run 'nix log /nix/store/z1fccsqrkcyk1hf2yqpag86353l0p2bd-vmware-workstation-17.5.1.drv'.
any idea why?
(using the expression @kotatsuyaki provided):
environment.systemPackages = with pkgs; [
vmfs-tools
open-vm-tools
];
virtualisation = {
vmware = {
host = {
enable = true;
package = pkgs.vmware-workstation.overrideAttrs rec {
src = ./vmware.bundle;
unpackPhase = let
vmware-unpack-env = pkgs.buildFHSEnv rec {
name = "vmware-unpack-env";
targetPkgs = pkgs: [pkgs.zlib];
};
in ''
${vmware-unpack-env}/bin/vmware-unpack-env -c "sh ${src} --extract unpacked"
'';
};
};
};
};