depot/third_party/nixpkgs/pkgs/tools/games/steam-rom-manager/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

29 lines
1,023 B
Nix

{ lib, appimageTools, fetchurl }:
appimageTools.wrapType2 rec {
name = "steam-rom-manager";
version = "2.5.11";
src = fetchurl {
url = "https://github.com/SteamGridDB/steam-rom-manager/releases/download/v${version}/Steam-ROM-Manager-${version}.AppImage";
sha256 = "sha256-KeJ1O7YZOP8l09XFIa043tEAAU6bwpvCsJQ5r5aeuQY=";
};
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" ];
mainProgram = "steam-rom-manager";
};
}