Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shadow-launcher: init at 9.9.10132 #365034

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions pkgs/by-name/sh/shadow-launcher/package.nix
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 PC 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" ];
};
}
Loading