92b3d6365d
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{ lib, fetchFromGitHub, buildPythonApplication, qt5
|
|
, legendary-gl, pypresence, pyqt5, python, qtawesome, requests, typing-extensions }:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "rare";
|
|
version = "1.9.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Dummerle";
|
|
repo = "Rare";
|
|
rev = version;
|
|
sha256 = "sha256-mL23tq5Fvd/kXAr7PZ+le5lRXwV3rKG/s8GuXE+S11M=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
qt5.wrapQtAppsHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
legendary-gl
|
|
pypresence
|
|
pyqt5
|
|
qtawesome
|
|
requests
|
|
typing-extensions
|
|
];
|
|
|
|
patches = [ ./fix-instance.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;
|
|
};
|
|
}
|