2022-11-03 04:05:06 +01:00
|
|
|
{ appimageTools, fetchurl, lib }:
|
|
|
|
let
|
|
|
|
pname = "protonup-qt";
|
2023-09-15 23:13:51 +02:00
|
|
|
version = "2.8.2";
|
2022-11-03 04:05:06 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/DavidoTek/ProtonUp-Qt/releases/download/v${version}/ProtonUp-Qt-${version}-x86_64.AppImage";
|
2023-09-15 23:13:51 +02:00
|
|
|
hash = "sha256-y7PoYbZBwkohqVEb/vGE0B8TTCtMncZIozABs0KJpL0=";
|
2022-11-03 04:05:06 +01:00
|
|
|
};
|
|
|
|
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
|
|
|
in
|
2023-06-20 04:41:32 +02:00
|
|
|
appimageTools.wrapType2 {
|
2022-11-03 04:05:06 +01:00
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mv $out/bin/{${pname}-${version},${pname}}
|
|
|
|
mkdir -p $out/share/{applications,pixmaps}
|
|
|
|
cp ${appimageContents}/net.davidotek.pupgui2.desktop $out/share/applications/${pname}.desktop
|
|
|
|
cp ${appimageContents}/net.davidotek.pupgui2.png $out/share/pixmaps/${pname}.png
|
|
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
|
|
|
--replace 'Exec=net.davidotek.pupgui2' 'Exec=${pname}' \
|
|
|
|
--replace 'Icon=net.davidotek.pupgui2' 'Icon=${pname}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://davidotek.github.io/protonup-qt/";
|
|
|
|
description = "Install and manage Proton-GE and Luxtorpeda for Steam and Wine-GE for Lutris with this graphical user interface.";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
|
|
mainProgram = "protonup-qt";
|
2023-06-20 04:41:32 +02:00
|
|
|
changelog = "https://github.com/DavidoTek/ProtonUp-Qt/releases/tag/v${version}";
|
2022-11-03 04:05:06 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2023-02-17 19:22:58 +01:00
|
|
|
maintainers = with maintainers; [ michaelBelsanti ];
|
2022-11-03 04:05:06 +01:00
|
|
|
};
|
|
|
|
}
|