biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / games / steam-rom-manager / default.nix
blob9b74ee139847571e9924c364166b99fcc25a96b3
1 { lib, appimageTools, fetchurl }:
3 appimageTools.wrapType2 rec {
4   name = "steam-rom-manager";
5   version = "2.5.22";
7   src = fetchurl {
8     url = "https://github.com/SteamGridDB/steam-rom-manager/releases/download/v${version}/Steam-ROM-Manager-${version}.AppImage";
9     sha256 = "sha256-XC4earHVsDioQRJIrAFl5a+UFHjS7U5zt2PqfDxEg9s=";
10   };
12   extraInstallCommands = let
13     appimageContents = appimageTools.extract { inherit name src; };
14     in ''
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
19     '';
21   meta = with lib; {
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";
28   };