2022-05-15 02:08:10 +00:00
|
|
|
{ lib, fetchurl, appimageTools }:
|
2019-12-28 18:16:18 +00:00
|
|
|
|
2022-04-30 00:44:52 +00:00
|
|
|
appimageTools.wrapType2 rec {
|
|
|
|
pname = "unityhub";
|
2020-08-28 13:48:40 +00:00
|
|
|
version = "2.3.2";
|
2022-04-30 00:44:52 +00:00
|
|
|
|
2021-08-05 07:29:28 +00:00
|
|
|
src = fetchurl {
|
|
|
|
# mirror of https://public-cdn.cloud.unity3d.com/hub/prod/UnityHub.AppImage
|
|
|
|
url = "https://archive.org/download/unity-hub-${version}/UnityHub.AppImage";
|
|
|
|
sha256 = "07nfyfp9apshqarc6pgshsczila6x4943hiyyizc55kp85aw0imn";
|
|
|
|
};
|
2019-12-28 18:16:18 +00:00
|
|
|
|
2021-07-16 07:35:40 +00:00
|
|
|
extraPkgs = (pkgs: with pkgs; with xorg; [ gtk2 gdk-pixbuf glib libGL libGLU nss nspr
|
2022-02-11 14:07:21 +00:00
|
|
|
alsa-lib cups libcap fontconfig freetype pango
|
2019-12-28 18:16:18 +00:00
|
|
|
cairo dbus dbus-glib libdbusmenu libdbusmenu-gtk2 expat zlib libpng12 udev tbb
|
|
|
|
libpqxx gtk3 libsecret lsb-release openssl nodejs ncurses5
|
|
|
|
|
|
|
|
libX11 libXcursor libXdamage libXfixes libXrender libXi
|
2020-06-24 21:06:58 +00:00
|
|
|
libXcomposite libXext libXrandr libXtst libSM libICE libxcb
|
|
|
|
|
2021-08-05 06:17:58 +00:00
|
|
|
libselinux pciutils libpulseaudio libxml2 icu clang cacert
|
2020-06-24 21:06:58 +00:00
|
|
|
]);
|
2019-12-28 18:16:18 +00:00
|
|
|
|
2021-08-05 07:29:28 +00:00
|
|
|
extraInstallCommands =
|
2022-04-30 00:44:52 +00:00
|
|
|
let appimageContents = appimageTools.extractType2 { inherit pname version src; }; in
|
2021-08-05 07:29:28 +00:00
|
|
|
''
|
|
|
|
install -Dm444 ${appimageContents}/unityhub.desktop -t $out/share/applications
|
|
|
|
substituteInPlace $out/share/applications/unityhub.desktop \
|
2022-04-30 00:44:52 +00:00
|
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
2021-08-05 07:29:28 +00:00
|
|
|
install -m 444 -D ${appimageContents}/unityhub.png \
|
|
|
|
$out/share/icons/hicolor/64x64/apps/unityhub.png
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-16 22:15:08 +00:00
|
|
|
homepage = "https://unity3d.com/";
|
2019-12-28 18:16:18 +00:00
|
|
|
description = "Game development tool";
|
|
|
|
longDescription = ''
|
|
|
|
Popular development platform for creating 2D and 3D multiplatform games
|
|
|
|
and interactive experiences.
|
|
|
|
'';
|
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ tesq0 ];
|
|
|
|
};
|
|
|
|
}
|