diff --git a/default.nix b/default.nix index 1d3c386..a329867 100644 --- a/default.nix +++ b/default.nix @@ -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 ]; + }); } diff --git a/patches/mumble-os-version.patch b/patches/mumble-os-version.patch new file mode 100644 index 0000000..b11a01f --- /dev/null +++ b/patches/mumble-os-version.patch @@ -0,0 +1,51 @@ +From 5460fffdd4c1161b5cd099944d88e25ffb81a2e0 Mon Sep 17 00:00:00 2001 +From: MadMaurice +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 &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 +