unityhub: fix nix-env version parsing
This commit is contained in:
parent
9b310a73db
commit
7bcf151685
1 changed files with 5 additions and 6 deletions
|
@ -1,15 +1,14 @@
|
||||||
{ lib, fetchurl, appimageTools, gsettings-desktop-schemas, gtk3 }:
|
{ lib, fetchurl, appimageTools, gsettings-desktop-schemas, gtk3 }:
|
||||||
|
|
||||||
let
|
appimageTools.wrapType2 rec {
|
||||||
|
pname = "unityhub";
|
||||||
version = "2.3.2";
|
version = "2.3.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
# mirror of https://public-cdn.cloud.unity3d.com/hub/prod/UnityHub.AppImage
|
# mirror of https://public-cdn.cloud.unity3d.com/hub/prod/UnityHub.AppImage
|
||||||
url = "https://archive.org/download/unity-hub-${version}/UnityHub.AppImage";
|
url = "https://archive.org/download/unity-hub-${version}/UnityHub.AppImage";
|
||||||
sha256 = "07nfyfp9apshqarc6pgshsczila6x4943hiyyizc55kp85aw0imn";
|
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
|
extraPkgs = (pkgs: with pkgs; with xorg; [ gtk2 gdk-pixbuf glib libGL libGLU nss nspr
|
||||||
alsa-lib cups libcap fontconfig freetype pango
|
alsa-lib cups libcap fontconfig freetype pango
|
||||||
|
@ -23,11 +22,11 @@ in appimageTools.wrapType2 rec {
|
||||||
]);
|
]);
|
||||||
|
|
||||||
extraInstallCommands =
|
extraInstallCommands =
|
||||||
let appimageContents = appimageTools.extractType2 { inherit name src; }; in
|
let appimageContents = appimageTools.extractType2 { inherit pname version src; }; in
|
||||||
''
|
''
|
||||||
install -Dm444 ${appimageContents}/unityhub.desktop -t $out/share/applications
|
install -Dm444 ${appimageContents}/unityhub.desktop -t $out/share/applications
|
||||||
substituteInPlace $out/share/applications/unityhub.desktop \
|
substituteInPlace $out/share/applications/unityhub.desktop \
|
||||||
--replace 'Exec=AppRun' 'Exec=${name}'
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
||||||
install -m 444 -D ${appimageContents}/unityhub.png \
|
install -m 444 -D ${appimageContents}/unityhub.png \
|
||||||
$out/share/icons/hicolor/64x64/apps/unityhub.png
|
$out/share/icons/hicolor/64x64/apps/unityhub.png
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue