NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.39k stars 13.61k forks source link

Package request: vmware fusion(darwin) #254663

Open tnxz opened 1 year ago

tnxz commented 1 year ago

Project description

VMware Fusion: Create, manage, and run virtual machines

Metadata

tnxz commented 12 months ago

I am trying to package it with the following code but the package seems to execute some startup script after prompting for password and shows the following error

Screenshot 2023-09-19 at 11 22 55 AM
{ lib
, fetchurl
, stdenv
, undmg
}:

stdenv.mkDerivation rec {
  pname = "vmware-fusion";
  version = "13.0.2";
  build = "21581413";
  sourceRoot = "VMware Fusion.app";
  src = fetchurl {
    url = "https://download3.vmware.com/software/FUS-${builtins.replaceStrings ["."] [""] version}/VMware-Fusion-${version}-${build}_universal.dmg";
    sha256 = "sha256-yGtAgjuXM08gtOa0dbSI7CP68GyYbikZZbnlb3tEwEI=";
  };
  nativeBuildInputs = [ undmg ];
  dontFixup = true;
  installPhase = ''
    mkdir -p $out/Applications/VMware\ Fusion.app
    cp -R . $out/Applications/VMware\ Fusion.app
  '';
  meta = with lib; {
    description = "Create, manage, and run virtual machines";
    homepage = "https://www.vmware.com/products/fusion.html";
    license = licenses.unfree;
    platforms = platforms.darwin;
    sourceProvenance = with sourceTypes; [ binaryNativeCode ];
  };
}

Does anyone know what am I missing here