nixpkgs/pkgs/games/rare/default.nix

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

52 lines
1.2 KiB
Nix
Raw Normal View History

2022-06-30 00:46:50 +02:00
{ lib, fetchFromGitHub, buildPythonApplication, qt5
2022-09-20 21:21:28 +02:00
, legendary-gl, pypresence, pyqt5, python, qtawesome, requests, typing-extensions }:
2022-03-19 05:03:14 +01:00
buildPythonApplication rec {
pname = "rare";
2022-09-20 21:21:28 +02:00
version = "1.9.2";
2022-03-19 05:03:14 +01:00
2022-06-30 00:46:50 +02:00
src = fetchFromGitHub {
owner = "Dummerle";
repo = "Rare";
rev = version;
2022-09-20 21:21:28 +02:00
sha256 = "sha256-mL23tq5Fvd/kXAr7PZ+le5lRXwV3rKG/s8GuXE+S11M=";
2022-03-19 05:03:14 +01:00
};
nativeBuildInputs = [
qt5.wrapQtAppsHook
];
propagatedBuildInputs = [
2022-09-20 21:21:28 +02:00
legendary-gl
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
patches = [ ./fix-instance.patch ];
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";
homepage = "https://github.com/Dummerle/Rare";
maintainers = with maintainers; [ wolfangaukang ];
license = licenses.gpl3Only;
platforms = platforms.linux;
};
}