From 7dbd19707ed0e4dfd2efe013c34832519820d057 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 29 Nov 2024 21:55:40 -0500 Subject: [PATCH] emudeck: fixup install scripts --- pkgs/emudeck.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/emudeck.nix b/pkgs/emudeck.nix index 7ce647f6..313dd596 100644 --- a/pkgs/emudeck.nix +++ b/pkgs/emudeck.nix @@ -1,3 +1,4 @@ +# This is extremely limited and largely proof-of-concept. Many things will simply not work, including Steam ROM Manager. Expect issues. { appimageTools, fetchurl, @@ -25,6 +26,18 @@ appimageTools.wrapType2 rec { zenity ]; + extraInstallCommands = let + appimageContents = appimageTools.extractType2 { + inherit pname version src; + }; + in '' + install -m 444 -D ${appimageContents}/emudeck.desktop $out/share/applications/emudeck.desktop + install -m 444 -D ${appimageContents}/emudeck.png \ + $out/share/icons/hicolor/scalable/apps/emudeck.png + substituteInPlace $out/share/applications/${pname}.desktop \ + --replace 'Exec=AppRun' 'Exec=${pname}' + ''; + meta = with lib; { description = "EmuDeck utility to manage ROMs on handheld PCs"; homepage = "https://github.com/EmuDeck/emudeck-electron";