2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonApplication
|
|
|
|
, qt5
|
|
|
|
, legendary-gl
|
2024-01-02 11:29:13 +00:00
|
|
|
, orjson
|
2023-02-02 18:25:31 +00:00
|
|
|
, pypresence
|
|
|
|
, pyqt5
|
|
|
|
, python
|
|
|
|
, qtawesome
|
|
|
|
, requests
|
2024-01-02 11:29:13 +00:00
|
|
|
, setuptools
|
2023-02-02 18:25:31 +00:00
|
|
|
, typing-extensions
|
|
|
|
}:
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "rare";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.10.11";
|
|
|
|
pyproject = true;
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-01-02 11:29:13 +00:00
|
|
|
owner = "RareDevs";
|
2022-07-14 12:49:19 +00:00
|
|
|
repo = "Rare";
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-2DtI5iaK4bYdGfIEhPy52WaEqh+IJMZ6qo/348lMnLY=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-01-02 11:29:13 +00:00
|
|
|
setuptools
|
2022-03-30 09:31:56 +00:00
|
|
|
qt5.wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-10-30 15:09:59 +00:00
|
|
|
legendary-gl
|
2024-01-02 11:29:13 +00:00
|
|
|
orjson
|
2022-03-30 09:31:56 +00:00
|
|
|
pypresence
|
|
|
|
pyqt5
|
|
|
|
qtawesome
|
|
|
|
requests
|
2022-10-30 15:09:59 +00:00
|
|
|
typing-extensions
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
dontWrapQtApps = true;
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2022-07-14 12:49:19 +00: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-30 09:31:56 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GUI for Legendary, an Epic Games Launcher open source alternative";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/RareDevs/Rare";
|
2024-06-24 18:47:55 +00:00
|
|
|
maintainers = [ ];
|
2022-03-30 09:31:56 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "rare";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
}
|