]> git.ekhem.eu.org Git - guix.git/commitdiff
[common] Package libxft with the bgra patch.
authorJakub Czajka <jakub@ekhem.eu.org>
Fri, 23 Dec 2022 19:57:37 +0000 (20:57 +0100)
committerJakub Czajka <jczajka@google.com>
Sun, 24 Dec 2023 18:53:07 +0000 (19:53 +0100)
Libxft has a bug which crashes the library when displaying colorful
emojis. A patch is available online. This commit packages libxft with
the patch applied.

conf/common/suckless.scm [new file with mode: 0644]

diff --git a/conf/common/suckless.scm b/conf/common/suckless.scm
new file mode 100644 (file)
index 0000000..7c87dbb
--- /dev/null
@@ -0,0 +1,33 @@
+;; Copyright (c) 2022 Jakub Czajka <jakub@ekhem.eu.org>
+;; License: GPL-3.0 or later.
+;;
+;; suckless.scm - suckless software with the bgra patch for libxft.
+
+(define-module (conf common suckless)
+  #:use-module (gnu packages autotools)
+  #:use-module (gnu packages m4)
+  #:use-module (gnu packages xorg)
+  #:use-module (guix git-download)
+  #:use-module (guix packages)
+  #:export (libxft-bgra))
+
+(define libxft-bgra
+  (package
+   (inherit libxft)
+   (name "libxft-bgra")
+   (version "2.3.3")
+   (source
+    (origin
+     (method git-fetch)
+     (uri (git-reference
+           (url "https://github.com/uditkarode/libxft-bgra")
+           (commit "072cd202c0f4f757b32deac531586bc0429c8401")))
+     (sha256
+      (base32
+       "1pnz43kqrd2s6q0kgxjdz0ax7a6rf7jm635whnlgq7h6q8hmv15r"))))
+   (inputs
+    (modify-inputs (package-inputs libxft)
+                  (append autoconf
+                          automake
+                          libtool
+                          m4)))))