rare: cleanup

This commit is contained in:
Martino Fontana 2022-06-30 00:46:50 +02:00
parent f6342b8b9e
commit 20f9469625

View File

@ -1,23 +1,23 @@
{ lib, fetchPypi, buildPythonApplication, makeDesktopItem, copyDesktopItems, qt5 { lib, fetchFromGitHub, buildPythonApplication, qt5
, pillow, psutil, pypresence, pyqt5, python, qtawesome, requests }: , psutil, pypresence, pyqt5, python, qtawesome, requests }:
buildPythonApplication rec { buildPythonApplication rec {
pname = "rare"; pname = "rare";
version = "1.8.9"; version = "1.8.9";
src = fetchPypi { src = fetchFromGitHub {
inherit version; owner = "Dummerle";
pname = "Rare"; repo = "Rare";
sha256 = "sha256-UEvGwWjr4FCsvyFz6Db3VnhVS6MS3FYzYSucumzOoEA="; rev = version;
sha256 = "sha256-2l8Id+bA5Ugb8+3ioiZ78dUtDusU8cvZEAMhmYBcJFc=";
fetchSubmodules = true;
}; };
nativeBuildInputs = [ nativeBuildInputs = [
copyDesktopItems
qt5.wrapQtAppsHook qt5.wrapQtAppsHook
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
pillow
psutil psutil
pypresence pypresence
pyqt5 pyqt5
@ -25,17 +25,6 @@ buildPythonApplication rec {
requests requests
]; ];
desktopItems = [
(makeDesktopItem {
name = pname;
exec = "rare";
icon = "Rare";
comment = meta.description;
desktopName = "Rare";
genericName = "Rare (Epic Games Launcher Open Source Alternative)";
})
];
dontWrapQtApps = true; dontWrapQtApps = true;
preBuild = '' preBuild = ''
@ -44,7 +33,8 @@ buildPythonApplication rec {
''; '';
postInstall = '' 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 = '' preFixup = ''