commit
4f8ba02162
1 changed files with 10 additions and 20 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue