First attempt at installing VMware on Nixos. While this doesn’t look like a NixOS-specific error, I was wondering if someone knew how to work this out:
error: builder for '/nix/store/31aw51mndcaagm6v1v3p4mpqy3cxrz7i-source.drv' failed with exit code 1;
last 11 log lines:
>
> trying https://softwareupdate.vmware.com/cds/vmw-desktop/ws/17.6.1/24319023/linux/core/VMware-Workstation-17.6.1-24319023.x86_64.bundle.tar
> % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 100 167 100 167 0 0 1248 0 --:--:-- --:--:-- --:--:-- 1255
> 100 354k 0 354k 0 0 685k 0 --:--:-- --:--:-- --:--:-- 685k
> unpacking source archive /build/VMware-Workstation-17.6.1-24319023.x86_64.bundle.tar
> tar: This does not look like a tar archive
> tar: Skipping to next header
> tar: Exiting with failure status due to previous errors
> do not know how to unpack source archive /build/VMware-Workstation-17.6.1-24319023.x86_64.bundle.tar
For full logs, run 'nix log /nix/store/31aw51mndcaagm6v1v3p4mpqy3cxrz7i-source.drv'.
error:
… while calling the 'head' builtin
at /nix/store/sr3gj4wcx3kwy0q5gcxl49ja733bqm7b-source/lib/attrsets.nix:1574:11:
1573| || pred here (elemAt values 1) (head values) then
1574| head values
| ^
1575| else
… while evaluating the attribute 'value'
at /nix/store/sr3gj4wcx3kwy0q5gcxl49ja733bqm7b-source/lib/modules.nix:816:9:
815| in warnDeprecation opt //
816| { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
817| inherit (res.defsFinal') highestPrio;
… while evaluating the option `system.build.toplevel':
… while evaluating definitions from `/nix/store/sr3gj4wcx3kwy0q5gcxl49ja733bqm7b-source/nixos/modules/system/activation/top-level.nix':
… while evaluating the option `system.systemBuilderArgs':
… while evaluating definitions from `/nix/store/sr3gj4wcx3kwy0q5gcxl49ja733bqm7b-source/nixos/modules/system/activation/activatable-system.nix':
… while evaluating the option `system.activationScripts.etc.text':
… while evaluating definitions from `/nix/store/sr3gj4wcx3kwy0q5gcxl49ja733bqm7b-source/nixos/modules/system/etc/etc-activation.nix':
… while evaluating definitions from `/nix/store/sr3gj4wcx3kwy0q5gcxl49ja733bqm7b-source/nixos/modules/system/etc/etc.nix':
… while evaluating the option `environment.etc."vmware/config".source':
… while evaluating definitions from `/nix/store/sr3gj4wcx3kwy0q5gcxl49ja733bqm7b-source/nixos/modules/system/etc/etc.nix':
… while evaluating the option `environment.etc."vmware/config".text':
… while evaluating definitions from `/nix/store/sr3gj4wcx3kwy0q5gcxl49ja733bqm7b-source/nixos/modules/virtualisation/vmware-host.nix':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: 1 dependencies of derivation '/nix/store/ilxrwglm1v7rxpw6cxwhk2q7hrl6scfw-vmware-workstation-17.6.1.drv' failed to build
All I did was add virtualisation.vmware.host.enable = true;
and rebuilt the system. What as I missing? FWIW, I got Virtualbox to work right away.
EDIT: looks like this issue has already been reported on Github: Build failure: vmware-workstation · Issue #392841 · NixOS/nixpkgs · GitHub