2024-11-29 21:55:40 -05:00
|
|
|
# This is extremely limited and largely proof-of-concept. Many things will simply not work, including Steam ROM Manager. Expect issues.
|
2024-11-25 08:26:11 -05:00
|
|
|
{
|
|
|
|
appimageTools,
|
|
|
|
fetchurl,
|
|
|
|
lib,
|
|
|
|
}:
|
|
|
|
appimageTools.wrapType2 rec {
|
|
|
|
pname = "emudeck";
|
|
|
|
version = "2.3.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
hash = "sha256-BVlATLKbE9wwMs4844UpXCTZsLW1oRFWf9hujVUpa4k=";
|
|
|
|
url = "https://github.com/EmuDeck/emudeck-electron/releases/download/v${version}/EmuDeck-${version}.AppImage";
|
|
|
|
};
|
|
|
|
|
|
|
|
extraPkgs = pkgs:
|
|
|
|
with pkgs; [
|
|
|
|
bash
|
|
|
|
flatpak
|
|
|
|
fuse2
|
|
|
|
git
|
|
|
|
jq
|
|
|
|
newt
|
|
|
|
rsync
|
|
|
|
unzip
|
|
|
|
zenity
|
|
|
|
];
|
|
|
|
|
2024-11-29 21:55:40 -05:00
|
|
|
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}'
|
|
|
|
'';
|
|
|
|
|
2024-11-25 08:26:11 -05:00
|
|
|
meta = with lib; {
|
|
|
|
description = "EmuDeck utility to manage ROMs on handheld PCs";
|
|
|
|
homepage = "https://github.com/EmuDeck/emudeck-electron";
|
|
|
|
license = licenses.mit;
|
|
|
|
mainProgram = "emudeck";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|