2023-01-06 18:31:13 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonApplication
|
|
|
|
, qt5
|
|
|
|
, legendary-gl
|
2023-12-26 19:25:57 +01:00
|
|
|
, orjson
|
2023-01-06 18:31:13 +01:00
|
|
|
, pypresence
|
|
|
|
, pyqt5
|
|
|
|
, python
|
|
|
|
, qtawesome
|
|
|
|
, requests
|
2023-12-07 21:58:39 +01:00
|
|
|
, setuptools
|
2023-01-06 18:31:13 +01:00
|
|
|
, typing-extensions
|
|
|
|
}:
|
2022-03-19 05:03:14 +01:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "rare";
|
2023-12-26 19:25:57 +01:00
|
|
|
version = "1.10.11";
|
2023-12-07 21:58:39 +01:00
|
|
|
pyproject = true;
|
2022-03-19 05:03:14 +01:00
|
|
|
|
2022-06-30 00:46:50 +02:00
|
|
|
src = fetchFromGitHub {
|
2023-12-07 21:58:39 +01:00
|
|
|
owner = "RareDevs";
|
2022-06-30 00:46:50 +02:00
|
|
|
repo = "Rare";
|
2022-12-29 10:28:34 +01:00
|
|
|
rev = "refs/tags/${version}";
|
2023-12-26 19:25:57 +01:00
|
|
|
hash = "sha256-2DtI5iaK4bYdGfIEhPy52WaEqh+IJMZ6qo/348lMnLY=";
|
2022-03-19 05:03:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-12-07 21:58:39 +01:00
|
|
|
setuptools
|
2022-03-19 05:03:14 +01:00
|
|
|
qt5.wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-09-20 21:21:28 +02:00
|
|
|
legendary-gl
|
2023-12-26 19:25:57 +01:00
|
|
|
orjson
|
2022-03-19 05:03:14 +01:00
|
|
|
pypresence
|
|
|
|
pyqt5
|
|
|
|
qtawesome
|
|
|
|
requests
|
2022-09-20 21:21:28 +02:00
|
|
|
typing-extensions
|
2022-03-19 05:03:14 +01:00
|
|
|
];
|
|
|
|
|
2022-09-20 21:21:28 +02:00
|
|
|
dontWrapQtApps = true;
|
2022-03-19 05:03:14 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
2022-06-30 00:46:50 +02:00
|
|
|
install -Dm644 misc/rare.desktop -t $out/share/applications/
|
|
|
|
install -Dm644 $out/${python.sitePackages}/rare/resources/images/Rare.png $out/share/pixmaps/rare.png
|
2022-03-19 05:03:14 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GUI for Legendary, an Epic Games Launcher open source alternative";
|
2023-12-07 21:58:39 +01:00
|
|
|
homepage = "https://github.com/RareDevs/Rare";
|
2022-03-19 05:03:14 +01:00
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.linux;
|
2023-12-07 21:58:39 +01:00
|
|
|
mainProgram = "rare";
|
2022-03-19 05:03:14 +01:00
|
|
|
};
|
|
|
|
}
|