-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3566ab7
commit 5ce45e6
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
lib, | ||
fetchurl, | ||
appimageTools, | ||
}: | ||
|
||
let | ||
pname = "shadow-launcher"; | ||
version = "9.9.10132"; | ||
channel = "prod"; | ||
src = fetchurl { | ||
url = "https://update.shadow.tech/launcher/${channel}/linux/ubuntu_18.04/ShadowPC-${version}.AppImage"; | ||
hash = "sha256-evwt7S2jxyFq9Kmx4OvX4Kuabuq2fM2PWp3GI2YCe/c="; | ||
}; | ||
appimageContents = appimageTools.extractType2 { inherit pname version src; }; | ||
in | ||
appimageTools.wrapType2 { | ||
inherit pname version src; | ||
|
||
extraInstallCommands = '' | ||
install -Dm444 ${appimageContents}/${pname}.desktop -t $out/share/applications/ | ||
install -Dm444 ${appimageContents}/${pname}.png -t $out/share/pixmaps/ | ||
substituteInPlace $out/share/applications/${pname}.desktop --replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=${pname} %U' | ||
cp -r ${appimageContents}/usr/share/icons $out/share | ||
''; | ||
|
||
extraPkgs = | ||
pkgs: with pkgs; [ | ||
libinput | ||
libva | ||
xorg.libX11 | ||
xorg.libXau | ||
xorg.libXdmcp | ||
]; | ||
|
||
meta = { | ||
description = "Shadow is a cloud platform designed to provide users with access to high-performance Windows machine for gaming, creative work, and business applications."; | ||
homepage = "https://shadow.tech/"; | ||
license = lib.licenses.unfree; | ||
mainProgram = "shadow-launcher"; | ||
maintainers = with lib.maintainers; [ jacfal ]; | ||
platforms = [ "x86_64-linux" ]; | ||
}; | ||
} |