Skip to content

Commit

Permalink
remotegamepad: init at 0-unstable-2025-02-02
Browse files Browse the repository at this point in the history
  • Loading branch information
goatastronaut0212 committed Feb 3, 2025
1 parent 8ed1faf commit 583a800
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions pkgs/by-name/re/remotegamepad/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
lib,
stdenv,
fetchurl,
autoPatchelfHook,
makeDesktopItem,
copyDesktopItems,
wrapGAppsHook3,
cairo,
libxcrypt-legacy,
...
}:

stdenv.mkDerivation {
pname = "remotegamepad";
version = "0-unstable-2025-02-02";
src = fetchurl {
url = "https://download.remotegamepad.com/remotegamepad_amd64.tar.gz";
hash = "sha256-LqCRpyIiOLFRBqU75wUaYiYJTbg/C0RGaG43m9RUV6Q=";
};

nativeBuildInputs = [
autoPatchelfHook
wrapGAppsHook3
copyDesktopItems
];

buildInputs = [
cairo
libxcrypt-legacy
];

sourceRoot = ".";

desktopItems = [
(makeDesktopItem {
name = "Remote Gamepad";
exec = "remotegamepad";
icon = "remotegamepad";
desktopName = "Remote Gamepad";
genericName = "Remote Gamepad";
categories = [ "Game" ];
mimeTypes = [ "x-scheme-handler/remotegamepad" ];
terminal = false;
})
];

installPhase = ''
runHook preInstall
install -m755 -D remotegamepad $out/bin/remotegamepad
install -Dm644 icon.png $out/share/icons/hicolor/256x256/apps/remotegamepad.png
runHook postInstall
'';

meta = with lib; {
description = "Use your phone as a gamepad for your PC";
homepage = "https://remotegamepad.com/";
license = licenses.unfree;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ astronaut0212 ];
};
}

0 comments on commit 583a800

Please sign in to comment.