1 { lib, fetchurl, appimageTools }:
3 appimageTools.wrapType2 rec {
8 # mirror of https://public-cdn.cloud.unity3d.com/hub/prod/UnityHub.AppImage
9 url = "https://archive.org/download/unity-hub-${version}/UnityHub.AppImage";
10 sha256 = "07nfyfp9apshqarc6pgshsczila6x4943hiyyizc55kp85aw0imn";
13 extraPkgs = (pkgs: with pkgs; with xorg; [ gtk2 gdk-pixbuf glib libGL libGLU nss nspr
14 alsa-lib cups libcap fontconfig freetype pango
15 cairo dbus dbus-glib libdbusmenu libdbusmenu-gtk2 expat zlib libpng12 udev tbb
16 libpqxx gtk3 libsecret lsb-release openssl nodejs ncurses5
18 libX11 libXcursor libXdamage libXfixes libXrender libXi
19 libXcomposite libXext libXrandr libXtst libSM libICE libxcb
21 libselinux pciutils libpulseaudio libxml2 icu clang cacert
24 extraInstallCommands =
25 let appimageContents = appimageTools.extractType2 { inherit pname version src; }; in
27 install -Dm444 ${appimageContents}/unityhub.desktop -t $out/share/applications
28 substituteInPlace $out/share/applications/unityhub.desktop \
29 --replace 'Exec=AppRun' 'Exec=${pname}'
30 install -m 444 -D ${appimageContents}/unityhub.png \
31 $out/share/icons/hicolor/64x64/apps/unityhub.png
35 homepage = "https://unity3d.com/";
36 description = "Game development tool";
38 Popular development platform for creating 2D and 3D multiplatform games
39 and interactive experiences.
41 license = licenses.unfree;
42 platforms = [ "x86_64-linux" ];
43 maintainers = with maintainers; [ tesq0 ];