-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remotegamepad: init at 0-unstable-2025-02-02
- Loading branch information
1 parent
8ed1faf
commit 583a800
Showing
1 changed file
with
63 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,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 ]; | ||
}; | ||
} |