From 954fa1cda6a2f6fbd0e7a56146727051ecc67abc Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Fri, 23 Aug 2024 23:28:53 +0800 Subject: [PATCH] onboard: Fix crashes at startup ... by apply various Void Linux's patches. Noticed when testing Pantheon's quick-settings indicator. --- pkgs/applications/misc/onboard/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pkgs/applications/misc/onboard/default.nix b/pkgs/applications/misc/onboard/default.nix index d6c7da1ffefb..2fcaa7f4c48a 100644 --- a/pkgs/applications/misc/onboard/default.nix +++ b/pkgs/applications/misc/onboard/default.nix @@ -1,4 +1,5 @@ { fetchurl +, fetchpatch , lib , substituteAll , aspellWithDicts @@ -54,6 +55,22 @@ python3.pkgs.buildPythonApplication rec { }) # Allow loading hunspell dictionaries installed in NixOS system path ./hunspell-use-xdg-datadirs.patch + + # Python 3.12 fixes (otherwise crashes at startup) + (fetchpatch { + url = "https://github.com/void-linux/void-packages/raw/1be95325d320122efd5dedf7437839cfcca01f7a/srcpkgs/onboard/patches/python-3.12.patch"; + hash = "sha256-Lw5wlaWFlP5rFlEWmlPo5Ux8idrmhET/X9yiu+2Akkk="; + }) + (fetchpatch { + url = "https://github.com/void-linux/void-packages/raw/1be95325d320122efd5dedf7437839cfcca01f7a/srcpkgs/onboard/patches/thread-state.patch"; + hash = "sha256-fJfxD7HshroiEVkaKVBGV7py8tdOhbcprcmBQNuxR9U="; + }) + + # Fix for https://bugs.launchpad.net/onboard/+bug/1948723 + (fetchpatch { + url = "https://github.com/void-linux/void-packages/raw/9ef46bf26ac5acc1af5809f11c97b19c5e2233ed/srcpkgs/onboard/patches/fix-brokenformat.patch"; + hash = "sha256-r9mvJNWpPR1gsayuSSLpzIuafEKqtADYklre0Ju+KOM="; + }) ]; nativeBuildInputs = [