gnu: Add lemonbar-xft.

OpenSubmitted by elaexuotee.
Details
One participant
  • elaexuotee
Owner
unassigned
Severity
normal
E
E
elaexuotee wrote 6 days ago
(address . guix-patches@gnu.org)
2ZE4C0OKC3A7H.2HN5A6QF4EP7L@wilsonb.com
This adds a fork of the `lemonbar' package that supports fontconfig.
From 2a6f0059f8c5ca687c68c667d88a58c98f6c12ba Mon Sep 17 00:00:00 2001From: "B. Wilson" <elaexuotee@wilsonb.com>Date: Sun, 22 Nov 2020 14:23:48 +0900Subject: [PATCH] gnu: Add lemonbar-xft.To: guix-patches@gnu.org
gnu/packages/wm.scm(lemonbar-xft): New variable.--- gnu/packages/wm.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+)
Toggle diff (55 lines)diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scmindex 361cecf26f..7d9b591545 100644--- a/gnu/packages/wm.scm+++ b/gnu/packages/wm.scm@@ -37,6 +37,7 @@ ;;; Copyright © 2020 Marcin Karpezo <sirmacik@wioo.waw.pl> ;;; Copyright © 2020 EuAndreh <eu@euandre.org> ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>+;;; Copyright © 2020 B. Wilson <elaexuotee@wilsonb.com> ;;; ;;; This file is part of GNU Guix. ;;;@@ -1931,6 +1932,40 @@ formatting, RandR and Xinerama support and EWMH compliance without wasting your precious memory.") (license license:x11)))) +(define-public lemonbar-xft+ ;; Upstream v2.0 tag is several years behind HEAD+ (let ((commit "481e12363e2a0fe0ddd2176a8e003392be90ed02"))+ (package+ (inherit lemonbar)+ (name "lemonbar-xft")+ (version (string-append "2.0." (string-take commit 7)))+ (source (origin+ (method git-fetch)+ (uri (git-reference+ (url "https://github.com/drscream/lemonbar-xft")+ (commit commit)))+ (file-name (git-file-name name version))+ (sha256+ (base32+ "0588g37h18lv50h7w8vfbwhvc3iajh7sdr53848spaif99nh3mh4"))))+ (inputs `(("freetype" ,freetype)+ ("libxft" ,libxft)+ ("libx11" ,libx11)+ ,@(package-inputs lemonbar)))+ (arguments+ `(#:tests? #f ;no test suite+ #:make-flags+ (list+ (string-append "CC=" ,(cc-for-target))+ (string-append "PREFIX=" %output)+ (string-append "CFLAGS="+ (string-join+ (list (string-append "-I" (assoc-ref %build-inputs "freetype")+ "/include/freetype2")+ (string-append "-D" "VERSION="+ (format #f "'~s'" ,version))))))+ #:phases (modify-phases %standard-phases (delete 'configure)))))))+ (define-public xclickroot (let ((commit "309fd17174dba4149b5ea66654c6fd02cfcf7c9a") (revision "1"))-- 2.29.2
?