nixpkgs/pkgs/games/rare/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, buildPythonApplication
, qt5
, legendary-gl
, orjson
, pypresence
, pyqt5
, python
, qtawesome
, requests
, setuptools
, typing-extensions
}:
2022-03-19 04:03:14 +00:00
buildPythonApplication rec {
pname = "rare";
version = "1.10.11";
pyproject = true;
2022-03-19 04:03:14 +00:00
2022-06-29 22:46:50 +00:00
src = fetchFromGitHub {
owner = "RareDevs";
2022-06-29 22:46:50 +00:00
repo = "Rare";
2022-12-29 09:28:34 +00:00
rev = "refs/tags/${version}";
hash = "sha256-2DtI5iaK4bYdGfIEhPy52WaEqh+IJMZ6qo/348lMnLY=";
2022-03-19 04:03:14 +00:00
};
nativeBuildInputs = [
setuptools
2022-03-19 04:03:14 +00:00
qt5.wrapQtAppsHook
];
propagatedBuildInputs = [
2022-09-20 19:21:28 +00:00
legendary-gl
orjson
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
];
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/RareDevs/Rare";
maintainers = [ ];
2022-03-19 04:03:14 +00:00
license = licenses.gpl3Only;
platforms = platforms.linux;
mainProgram = "rare";
2022-03-19 04:03:14 +00:00
};
}