Add custom mumble patch
This commit is contained in:
parent
d95954eff5
commit
98136381bb
2 changed files with 55 additions and 0 deletions
|
@ -25,4 +25,8 @@ rec {
|
|||
openhexagon = callPackage ./pkgs/openhexagon/default.nix {};
|
||||
|
||||
python3 = super.python3.override { packageOverrides = pythonOverrides; };
|
||||
|
||||
mumble = super.mumble.overrideAttrs (old: {
|
||||
patches = (old.patches or []) ++ [ ./patches/mumble-os-version.patch ];
|
||||
});
|
||||
}
|
||||
|
|
51
patches/mumble-os-version.patch
Normal file
51
patches/mumble-os-version.patch
Normal file
|
@ -0,0 +1,51 @@
|
|||
From 5460fffdd4c1161b5cd099944d88e25ffb81a2e0 Mon Sep 17 00:00:00 2001
|
||||
From: MadMaurice <madmaurice@zom.bi>
|
||||
Date: Wed, 21 Apr 2021 22:02:27 +0200
|
||||
Subject: [PATCH] Patch os info string to say AmigaOS
|
||||
|
||||
---
|
||||
src/OSInfo.cpp | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/src/OSInfo.cpp b/src/OSInfo.cpp
|
||||
index 60a705f95..94435a384 100644
|
||||
--- a/src/OSInfo.cpp
|
||||
+++ b/src/OSInfo.cpp
|
||||
@@ -173,6 +173,8 @@ QString OSInfo::getMacHash(const QList<QHostAddress> &qlBind) {
|
||||
}
|
||||
|
||||
QString OSInfo::getOS() {
|
||||
+ return QLatin1String("Philips HD2581/00");
|
||||
+#if 0
|
||||
#if defined(Q_OS_WIN)
|
||||
# if defined(Q_OS_WIN64)
|
||||
return QLatin1String("WinX64");
|
||||
@@ -184,6 +186,7 @@ QString OSInfo::getOS() {
|
||||
#else
|
||||
return QLatin1String("X11");
|
||||
#endif
|
||||
+#endif
|
||||
}
|
||||
|
||||
QString OSInfo::getOSVersion() {
|
||||
@@ -193,7 +196,9 @@ QString OSInfo::getOSVersion() {
|
||||
return qsCached.isEmpty() ? QString() : qsCached;
|
||||
|
||||
QString os;
|
||||
+ os.sprintf("Amiga OS 1.3");
|
||||
|
||||
+#if 0
|
||||
#if defined(Q_OS_WIN)
|
||||
OSVERSIONINFOEXW ovi;
|
||||
memset(&ovi, 0, sizeof(ovi));
|
||||
@@ -258,6 +263,7 @@ QString OSInfo::getOSVersion() {
|
||||
os.sprintf("%s %s", un.sysname, un.release);
|
||||
}
|
||||
}
|
||||
+#endif
|
||||
#endif
|
||||
|
||||
if (! os.isNull())
|
||||
--
|
||||
2.29.3
|
||||
|
Loading…
Reference in a new issue