Skip to content

Commit

Permalink
Add shadow package
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-pravda committed Dec 14, 2024
1 parent 3566ab7 commit 81c7018
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions pkgs/by-name/sh/shadow-pc/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{ lib, fetchurl, appimageTools }:

let
pname = "shadow-launcher";
version = "9.9.10132";
src = fetchurl {
url =
"https://update.shadow.tech/launcher/prod/linux/ubuntu_18.04/ShadowPC.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" ];
};
}

0 comments on commit 81c7018

Please sign in to comment.