mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 11:00:19 +03:00
417de14e90
* rare: 1.9.4 -> 1.10.3 Diff: https://github.com/Dummerle/Rare/compare/refs/tags/1.9.4...1.10.3 * Update pkgs/games/rare/default.nix --------- Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonApplication
|
|
, qt5
|
|
, legendary-gl
|
|
, pypresence
|
|
, pyqt5
|
|
, python
|
|
, qtawesome
|
|
, requests
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "rare";
|
|
version = "1.10.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Dummerle";
|
|
repo = "Rare";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-7KER9gCpqjEKikQTVHsvwX6efCb9L0ut6OBjjLBW2tI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
qt5.wrapQtAppsHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
legendary-gl
|
|
pypresence
|
|
pyqt5
|
|
qtawesome
|
|
requests
|
|
typing-extensions
|
|
];
|
|
|
|
patches = [
|
|
# Not able to run pythonRelaxDepsHook because of https://github.com/NixOS/nixpkgs/issues/198342
|
|
./legendary-gl-version.patch
|
|
];
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
postInstall = ''
|
|
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 = ''
|
|
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;
|
|
};
|
|
}
|