onboard: patch custom bool redefinition

https://hydra.nixos.org/build/300403196/nixlog/1/tail

Perhaps we should also look at phasing out this package and/or
https://github.com/dr-ni/onboard
This commit is contained in:
Vladimír Čunát
2025-06-18 16:11:33 +02:00
parent 4283f162aa
commit 2ab1319135
2 changed files with 12 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
Author: @vcunat
Don't redefine bool and use the standard one instead.
--- a/Onboard/osk/osk_module.h
+++ b/Onboard/osk/osk_module.h
@@ -28 +28 @@
-typedef enum { false, true } bool;
+#include <stdbool.h>
+2
View File
@@ -72,6 +72,8 @@ python3.pkgs.buildPythonApplication rec {
url = "https://github.com/void-linux/void-packages/raw/9ef46bf26ac5acc1af5809f11c97b19c5e2233ed/srcpkgs/onboard/patches/fix-brokenformat.patch";
hash = "sha256-r9mvJNWpPR1gsayuSSLpzIuafEKqtADYklre0Ju+KOM=";
})
./bool.patch
];
nativeBuildInputs = [