about summary refs log tree commit diff
path: root/pkgs/tools/inputmethods/gebaar-libinput
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-12-11 01:51:56 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-12-11 14:32:32 +0100
commit7a32e1f807971e665ea4f8be123f8ac901b74454 (patch)
treedba29835cf0641630e4a8c14b9e1722dd8702a2a /pkgs/tools/inputmethods/gebaar-libinput
parent64891e361bc375a00e2da0b98a07267d17abfa2e (diff)
gebaar-libinput: fix build with gcc 11+
Diffstat (limited to 'pkgs/tools/inputmethods/gebaar-libinput')
-rw-r--r--pkgs/tools/inputmethods/gebaar-libinput/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/tools/inputmethods/gebaar-libinput/default.nix b/pkgs/tools/inputmethods/gebaar-libinput/default.nix
index 7506493ee7ce2..9a808535fe04f 100644
--- a/pkgs/tools/inputmethods/gebaar-libinput/default.nix
+++ b/pkgs/tools/inputmethods/gebaar-libinput/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, fetchFromGitHub, pkg-config, cmake, libinput, zlib }:
+{ stdenv, lib, fetchFromGitHub, fetchpatch, pkg-config, cmake, libinput, zlib }:
 
 stdenv.mkDerivation rec {
   pname = "gebaar-libinput";
@@ -12,6 +12,14 @@ stdenv.mkDerivation rec {
     fetchSubmodules = true;
   };
 
+  patches = [
+    # fix build with gcc 11+
+    (fetchpatch {
+      url = "https://github.com/9ary/gebaar-libinput-fork/commit/25cac08a5f1aed1951b03de12fa0010a0964967d.patch";
+      hash = "sha256-CtgfMTBCXotiPAXc7cA3h+7Kb0NHFi/q7w72IY32CyA=";
+    })
+  ];
+
   nativeBuildInputs = [ pkg-config cmake ];
   buildInputs = [ libinput zlib ];