1 { appimageTools, fetchurl, lib }:
6 url = "https://github.com/DavidoTek/ProtonUp-Qt/releases/download/v${version}/ProtonUp-Qt-${version}-x86_64.AppImage";
7 hash = "sha256-rT+vRYGE62SMBYhCsxYc9gnvKpOkqz0Qkr9QtKQx/Uc=";
9 appimageContents = appimageTools.extractType2 { inherit pname version src; };
11 appimageTools.wrapType2 {
12 inherit pname version src;
14 extraInstallCommands = ''
15 mv $out/bin/{${pname}-${version},${pname}}
16 mkdir -p $out/share/{applications,pixmaps}
17 cp ${appimageContents}/net.davidotek.pupgui2.desktop $out/share/applications/${pname}.desktop
18 cp ${appimageContents}/net.davidotek.pupgui2.png $out/share/pixmaps/${pname}.png
19 substituteInPlace $out/share/applications/${pname}.desktop \
20 --replace 'Exec=net.davidotek.pupgui2' 'Exec=${pname}' \
21 --replace 'Icon=net.davidotek.pupgui2' 'Icon=${pname}'
25 homepage = "https://davidotek.github.io/protonup-qt/";
26 description = "Install and manage Proton-GE and Luxtorpeda for Steam and Wine-GE for Lutris with this graphical user interface.";
27 license = licenses.gpl3;
28 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
29 mainProgram = "protonup-qt";
30 changelog = "https://github.com/DavidoTek/ProtonUp-Qt/releases/tag/v${version}";
31 platforms = [ "x86_64-linux" ];
32 maintainers = with maintainers; [ michaelBelsanti ];