Merge pull request #192118 from SuperSamus/rare

This commit is contained in:
Sandro 2022-10-25 15:22:54 +02:00 committed by GitHub
commit 8ee9c8d3ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 11 deletions

View file

@ -1,16 +1,15 @@
{ lib, fetchFromGitHub, buildPythonApplication, qt5 { lib, fetchFromGitHub, buildPythonApplication, qt5
, psutil, pypresence, pyqt5, python, qtawesome, requests }: , legendary-gl, pypresence, pyqt5, python, qtawesome, requests, typing-extensions }:
buildPythonApplication rec { buildPythonApplication rec {
pname = "rare"; pname = "rare";
version = "1.8.9"; version = "1.9.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Dummerle"; owner = "Dummerle";
repo = "Rare"; repo = "Rare";
rev = version; rev = version;
sha256 = "sha256-2l8Id+bA5Ugb8+3ioiZ78dUtDusU8cvZEAMhmYBcJFc="; sha256 = "sha256-mL23tq5Fvd/kXAr7PZ+le5lRXwV3rKG/s8GuXE+S11M=";
fetchSubmodules = true;
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -18,19 +17,17 @@ buildPythonApplication rec {
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
psutil legendary-gl
pypresence pypresence
pyqt5 pyqt5
qtawesome qtawesome
requests requests
typing-extensions
]; ];
dontWrapQtApps = true; patches = [ ./fix-instance.patch ];
preBuild = '' dontWrapQtApps = true;
# Solves "PermissionError: [Errno 13] Permission denied: '/homeless-shelter'"
export HOME=$(mktemp -d)
'';
postInstall = '' postInstall = ''
install -Dm644 misc/rare.desktop -t $out/share/applications/ install -Dm644 misc/rare.desktop -t $out/share/applications/

View file

@ -0,0 +1,10 @@
diff --git a/rare/utils/misc.py b/rare/utils/misc.py
index 4492074..5352dac 100644
--- a/rare/utils/misc.py
+++ b/rare/utils/misc.py
@@ -190,6 +190,7 @@ def get_rare_executable() -> List[str]:
executable = [sys.executable]
executable[0] = os.path.abspath(executable[0])
+ executable.pop(0)
return executable

View file

@ -34099,7 +34099,7 @@ with pkgs;
leela-zero = libsForQt5.callPackage ../games/leela-zero { }; leela-zero = libsForQt5.callPackage ../games/leela-zero { };
legendary-gl = python38Packages.callPackage ../games/legendary-gl { }; legendary-gl = python3Packages.callPackage ../games/legendary-gl { };
left4gore-bin = callPackage ../games/left4gore { }; left4gore-bin = callPackage ../games/left4gore { };