-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failure: vmware-workstation #392841
Comments
I'm pretty sure it downloaded an HTML page instead of the tar archive, since the download URL is no longer valid. |
The new download URLs also seem to be behind authentication gates, so this will need a |
Yes the download url now returns a 301 redirecting to the broadcom support site (
|
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/vmware-workstation-fails-to-unpack-tar-archive/62161/1 |
I'm encountering the same issue on unstable NixOS and Nixpkgs for VMware Workstation, as discussed before, authentication is causing the build to fail. Is there a way to authenticate the download issue or any workarounds to make the build work? Environment:
|
With a broadcom account, download the currently 17.6.1 vmware bundle file Obtain the downloaded file's hash and add it to the nix store (edit the path here and run it) nix hash to-sri --type sha256 $(nix-prefetch-url --type sha256 file:///home/your-user/Downloads/VMware-Workstation-17.6.1-24319023.x86_64.bundle.tar) Add this to your config, update the hash that you got before and rebuild: nixpkgs.overlays = [
(
final: prev:
let
finalAttrs = final.vmware-workstation;
baseUrl = "https://softwareupdate.vmware.com/cds/vmw-desktop/ws/${finalAttrs.version}/${finalAttrs.build}/linux";
in
{
vmware-workstation = prev.vmware-workstation.overrideAttrs {
src =
prev.requireFile rec {
name = "VMware-Workstation-${finalAttrs.version}-${finalAttrs.build}.x86_64.bundle.tar";
url = "${baseUrl}/core/${name}";
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
}
+ "/VMware-Workstation-${finalAttrs.version}-${finalAttrs.build}.x86_64.bundle";
};
}
)
]; You may get a message that "Unfortunately, we cannot download file VMware-Workstation-17.6.1-24319023.x86_64.bundle.tar automatically.", follow the instructions in the error message, essentially run the following then rebuild again: nix-store --add-fixed sha256 VMware-Workstation-17.6.1-24319023.x86_64.bundle.tar In theory this should work for 17.6.1, newer versions probably require more tweaking. However I haven't tested it with an actual vmware file |
There's a snapshot of the vmware site before they locked downloading behind a broadcom account, but looks like its for windows: https://archive.org/download/vmware-workstation-full-17.6.1-24319023_20241121 Edit: this should be a working link https://web.archive.org/web/20241118212048/https://softwareupdate.vmware.com/cds/vmw-desktop/ws/17.6.1/24319023/linux/core/ |
Nixpkgs version
Steps to reproduce
NIXPKGS_ALLOW_UNFREE=1 nix build github:NixOS/nixpkgs/5c72fd684249c99b173fbc33ef82c460f414f60b#vmware-workstation --impure
Can Hydra reproduce this build failure?
No, Hydra cannot reproduce this build failure.
Link to Hydra build job
No response
Relevant log output
Additional context
Related: #310121
System metadata
"x86_64-linux"
Linux 6.13.7-zen1, NixOS, 25.05 (Warbler), 25.05.20250315.c80f6a7
yes
yes
nix-env (Lix, like Nix) 2.91.1 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/gep/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/gep/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/gep/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/gep/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/riqr33jgc60nsk8w2d0blq17y8skp0yn-lix-2.91.1/share
/nix/store/alzxn3hjisc84hrlv44x6hni48crww26-source
Notify maintainers
@cawilliamson @deinferno @vifino
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE
.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: