depot/third_party/nixpkgs/pkgs/tools/games/steam-rom-manager/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

28 lines
987 B
Nix

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