From: Christopher Baines <mail@cbaines.net>
To: elaexuotee@wilsonb.com
Cc: 44789@debbugs.gnu.org
Subject: [bug#44789] gnu: Add lemonbar-xft.
Date: Sat, 28 Nov 2020 16:46:09 +0000 [thread overview]
Message-ID: <87zh31sa3y.fsf@cbaines.net> (raw)
In-Reply-To: <2ZE4C0OKC3A7H.2HN5A6QF4EP7L@wilsonb.com>
[-- Attachment #1: Type: text/plain, Size: 3431 bytes --]
elaexuotee--- via Guix-patches via <guix-patches@gnu.org> writes:
> This adds a fork of the `lemonbar' package that supports fontconfig.
I don't know anything about lemonbar, but this sounds OK in principle.
gnu/packages/wm.scm(lemonbar-xft): New variable.
---
gnu/packages/wm.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 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)))))))
So, it would be nice to change the description (and maybe synopsis) to
set out how this package is different from lemonbar.
Also, regarding the arguments above, I think you can reduce the
duplication with the lemonbar package by doing something like:
(arguments
(substitute-keyword-arguments (package-arguments lemonbar)
((#:make-flags make-flags)
(append make-flags
(string-append
"CFLAGS="
(string-join
(list (string-append "-I" (assoc-ref %build-inputs "freetype")
"/include/freetype2")
(string-append "-D" "VERSION="
(format #f "'~s'" ,version)))))))))
I've only just written this in this email, so I'm not sure if it works,
but I think it's close.
Would you be able to send an updated patch?
Thanks,
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]
next prev parent reply other threads:[~2020-11-28 16:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-22 5:30 [bug#44789] gnu: Add lemonbar-xft elaexuotee--- via Guix-patches via
2020-11-28 16:46 ` Christopher Baines [this message]
2020-12-09 6:53 ` elaexuotee--- via Guix-patches via
2020-12-09 9:14 ` bug#44789: " Christopher Baines
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zh31sa3y.fsf@cbaines.net \
--to=mail@cbaines.net \
--cc=44789@debbugs.gnu.org \
--cc=elaexuotee@wilsonb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.