nixpkgs/pkgs/tools/games/steam-rom-manager/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1023 B
Nix
Raw Normal View History

2022-07-19 02:59:57 +00:00
{ lib, appimageTools, fetchurl }:
appimageTools.wrapType2 rec {
name = "steam-rom-manager";
2024-07-06 03:30:28 +00:00
version = "2.5.17";
2022-07-19 02:59:57 +00:00
src = fetchurl {
url = "https://github.com/SteamGridDB/steam-rom-manager/releases/download/v${version}/Steam-ROM-Manager-${version}.AppImage";
2024-07-06 03:30:28 +00:00
sha256 = "sha256-2b9gL9gkQdTf+EBgjb+KFRJZjqNW/xeDusDJM1AO2U4=";
2022-07-19 02:59:57 +00:00
};
extraInstallCommands = let
appimageContents = appimageTools.extract { inherit name src; };
in ''
install -m 444 -D ${appimageContents}/${name}.desktop -t $out/share/applications
substituteInPlace $out/share/applications/${name}.desktop \
--replace 'Exec=AppRun' 'Exec=${name}'
cp -r ${appimageContents}/usr/share/icons $out/share
'';
meta = with lib; {
description = "App for managing ROMs in Steam";
homepage = "https://github.com/SteamGridDB/steam-rom-manager";
license = licenses.gpl3Only;
maintainers = with maintainers; [ squarepear ];
platforms = [ "x86_64-linux" ];
2024-02-11 02:19:15 +00:00
mainProgram = "steam-rom-manager";
2022-07-19 02:59:57 +00:00
};
}