Merge pull request #132745 from tesq0/unityhub-desktop-file
This commit is contained in:
commit
8284d3a930
1 changed files with 17 additions and 7 deletions
|
@ -2,8 +2,14 @@
|
|||
|
||||
let
|
||||
version = "2.3.2";
|
||||
in appimageTools.wrapType2 rec {
|
||||
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";
|
||||
};
|
||||
name = "unityhub";
|
||||
in appimageTools.wrapType2 rec {
|
||||
inherit name src;
|
||||
|
||||
extraPkgs = (pkgs: with pkgs; with xorg; [ gtk2 gdk-pixbuf glib libGL libGLU nss nspr
|
||||
alsa-lib cups gnome2.GConf libcap fontconfig freetype pango
|
||||
|
@ -16,16 +22,20 @@ in appimageTools.wrapType2 rec {
|
|||
libselinux pciutils libpulseaudio libxml2 icu clang cacert
|
||||
]);
|
||||
|
||||
extraInstallCommands =
|
||||
let appimageContents = appimageTools.extractType2 { inherit name src; }; in
|
||||
''
|
||||
install -Dm444 ${appimageContents}/unityhub.desktop -t $out/share/applications
|
||||
substituteInPlace $out/share/applications/unityhub.desktop \
|
||||
--replace 'Exec=AppRun' 'Exec=${name}'
|
||||
install -m 444 -D ${appimageContents}/unityhub.png \
|
||||
$out/share/icons/hicolor/64x64/apps/unityhub.png
|
||||
'';
|
||||
|
||||
profile = ''
|
||||
export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS
|
||||
'';
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://unity3d.com/";
|
||||
description = "Game development tool";
|
||||
|
|
Loading…
Reference in a new issue