Merge pull request #179639 from SuperSamus/rare

rare: cleanup
This commit is contained in:
superherointj 2022-07-06 16:19:48 -03:00 committed by GitHub
commit 4f8ba02162
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,23 +1,23 @@
{ lib, fetchPypi, buildPythonApplication, makeDesktopItem, copyDesktopItems, qt5
, pillow, psutil, pypresence, pyqt5, python, qtawesome, requests }:
{ lib, fetchFromGitHub, buildPythonApplication, qt5
, psutil, pypresence, pyqt5, python, qtawesome, requests }:
buildPythonApplication rec {
pname = "rare";
version = "1.8.9";
src = fetchPypi {
inherit version;
pname = "Rare";
sha256 = "sha256-UEvGwWjr4FCsvyFz6Db3VnhVS6MS3FYzYSucumzOoEA=";
src = fetchFromGitHub {
owner = "Dummerle";
repo = "Rare";
rev = version;
sha256 = "sha256-2l8Id+bA5Ugb8+3ioiZ78dUtDusU8cvZEAMhmYBcJFc=";
fetchSubmodules = true;
};
nativeBuildInputs = [
copyDesktopItems
qt5.wrapQtAppsHook
];
propagatedBuildInputs = [
pillow
psutil
pypresence
pyqt5
@ -25,17 +25,6 @@ buildPythonApplication rec {
requests
];
desktopItems = [
(makeDesktopItem {
name = pname;
exec = "rare";
icon = "Rare";
comment = meta.description;
desktopName = "Rare";
genericName = "Rare (Epic Games Launcher Open Source Alternative)";
})
];
dontWrapQtApps = true;
preBuild = ''
@ -44,7 +33,8 @@ buildPythonApplication rec {
'';
postInstall = ''
install -Dm644 $out/${python.sitePackages}/rare/resources/images/Rare.png -t $out/share/pixmaps/
install -Dm644 misc/rare.desktop -t $out/share/applications/
install -Dm644 $out/${python.sitePackages}/rare/resources/images/Rare.png $out/share/pixmaps/rare.png
'';
preFixup = ''