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 16, 2024
1 parent 3566ab7 commit 5ce45e6
Showing 1 changed file with 44 additions and 0 deletions.
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 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 5ce45e6

Please sign in to comment.