Merge pull request #199294 from michaelBelsanti/protonup-qt

protonup-qt: init at 2.7.4
This commit is contained in:
Sandro 2023-02-17 17:42:26 +01:00 committed by GitHub
commit b21a7331c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ appimageTools, fetchurl, lib }:
let
pname = "protonup-qt";
version = "2.7.4";
src = fetchurl {
url = "https://github.com/DavidoTek/ProtonUp-Qt/releases/download/v${version}/ProtonUp-Qt-${version}-x86_64.AppImage";
sha256 = "yKc+KOQfqciqULnChVLf6y9npoSYM6Fmu7mYGEKmpkA=";
};
appimageContents = appimageTools.extractType2 { inherit pname version src; };
in
appimageTools.wrapType2 rec {
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";
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ quasigod-io ];
};
}

View File

@ -30245,6 +30245,8 @@ with pkgs;
pixinsight = libsForQt5.callPackage ../applications/graphics/pixinsight { };
protonup-qt = python3Packages.callPackage ../applications/misc/protonup-qt { };
pmbootstrap = python3Packages.callPackage ../tools/misc/pmbootstrap { };
popura = callPackage ../tools/networking/popura {};