depot/third_party/nixpkgs/pkgs/tools/games/steam-rom-manager/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

29 lines
1 KiB
Nix

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