1 { lib, appimageTools, fetchurl }:
3 appimageTools.wrapType2 rec {
4 name = "steam-rom-manager";
8 url = "https://github.com/SteamGridDB/steam-rom-manager/releases/download/v${version}/Steam-ROM-Manager-${version}.AppImage";
9 sha256 = "sha256-XC4earHVsDioQRJIrAFl5a+UFHjS7U5zt2PqfDxEg9s=";
12 extraInstallCommands = let
13 appimageContents = appimageTools.extract { inherit name src; };
15 install -m 444 -D ${appimageContents}/${name}.desktop -t $out/share/applications
16 substituteInPlace $out/share/applications/${name}.desktop \
17 --replace 'Exec=AppRun' 'Exec=${name}'
18 cp -r ${appimageContents}/usr/share/icons $out/share
22 description = "App for managing ROMs in Steam";
23 homepage = "https://github.com/SteamGridDB/steam-rom-manager";
24 license = licenses.gpl3Only;
25 maintainers = with maintainers; [ squarepear ];
26 platforms = [ "x86_64-linux" ];
27 mainProgram = "steam-rom-manager";