2023-01-06 17:31:13 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonApplication
|
|
|
|
, qt5
|
|
|
|
, legendary-gl
|
|
|
|
, pypresence
|
|
|
|
, pyqt5
|
|
|
|
, python
|
|
|
|
, qtawesome
|
|
|
|
, requests
|
|
|
|
, typing-extensions
|
|
|
|
}:
|
2022-03-19 04:03:14 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "rare";
|
2023-06-28 12:03:50 +00:00
|
|
|
version = "1.10.3";
|
2022-03-19 04:03:14 +00:00
|
|
|
|
2022-06-29 22:46:50 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Dummerle";
|
|
|
|
repo = "Rare";
|
2022-12-29 09:28:34 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-06-28 12:03:50 +00:00
|
|
|
hash = "sha256-7KER9gCpqjEKikQTVHsvwX6efCb9L0ut6OBjjLBW2tI=";
|
2022-03-19 04:03:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qt5.wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-09-20 19:21:28 +00:00
|
|
|
legendary-gl
|
2022-03-19 04:03:14 +00:00
|
|
|
pypresence
|
|
|
|
pyqt5
|
|
|
|
qtawesome
|
|
|
|
requests
|
2022-09-20 19:21:28 +00:00
|
|
|
typing-extensions
|
2022-03-19 04:03:14 +00:00
|
|
|
];
|
|
|
|
|
2023-01-06 17:31:13 +00:00
|
|
|
patches = [
|
|
|
|
# Not able to run pythonRelaxDepsHook because of https://github.com/NixOS/nixpkgs/issues/198342
|
|
|
|
./legendary-gl-version.patch
|
|
|
|
];
|
2022-03-19 04:03:14 +00:00
|
|
|
|
2022-09-20 19:21:28 +00:00
|
|
|
dontWrapQtApps = true;
|
2022-03-19 04:03:14 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2022-06-29 22:46:50 +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-19 04:03:14 +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";
|
|
|
|
homepage = "https://github.com/Dummerle/Rare";
|
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|