mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
rare: 1.8.9 -> 1.9.2
This commit is contained in:
parent
1cfac7d2bc
commit
00b57fb2c0
@ -1,16 +1,15 @@
|
||||
{ lib, fetchFromGitHub, buildPythonApplication, qt5
|
||||
, psutil, pypresence, pyqt5, python, qtawesome, requests }:
|
||||
, legendary-gl, pypresence, pyqt5, python, qtawesome, requests, typing-extensions }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "rare";
|
||||
version = "1.8.9";
|
||||
version = "1.9.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Dummerle";
|
||||
repo = "Rare";
|
||||
rev = version;
|
||||
sha256 = "sha256-2l8Id+bA5Ugb8+3ioiZ78dUtDusU8cvZEAMhmYBcJFc=";
|
||||
fetchSubmodules = true;
|
||||
sha256 = "sha256-mL23tq5Fvd/kXAr7PZ+le5lRXwV3rKG/s8GuXE+S11M=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -18,19 +17,17 @@ buildPythonApplication rec {
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
psutil
|
||||
legendary-gl
|
||||
pypresence
|
||||
pyqt5
|
||||
qtawesome
|
||||
requests
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
patches = [ ./fix-instance.patch ];
|
||||
|
||||
preBuild = ''
|
||||
# Solves "PermissionError: [Errno 13] Permission denied: '/homeless-shelter'"
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
dontWrapQtApps = true;
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 misc/rare.desktop -t $out/share/applications/
|
||||
|
10
pkgs/games/rare/fix-instance.patch
Normal file
10
pkgs/games/rare/fix-instance.patch
Normal 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
|
Loading…
Reference in New Issue
Block a user