From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gb5qM-0001aW-DO for guix-patches@gnu.org; Sun, 23 Dec 2018 10:39:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gb5qI-0006lv-8t for guix-patches@gnu.org; Sun, 23 Dec 2018 10:39:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:57880) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gb5qI-0006kr-45 for guix-patches@gnu.org; Sun, 23 Dec 2018 10:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gb5qI-0003jE-0Q for guix-patches@gnu.org; Sun, 23 Dec 2018 10:39:02 -0500 Subject: [bug#33849] [PATCH] gnu: Add polybar Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gb5pu-0001RW-1T for guix-patches@gnu.org; Sun, 23 Dec 2018 10:38:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gb5pp-0006NH-Bs for guix-patches@gnu.org; Sun, 23 Dec 2018 10:38:37 -0500 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]:34964) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gb5po-0006Jc-2l for guix-patches@gnu.org; Sun, 23 Dec 2018 10:38:32 -0500 Received: by mail-pg1-x541.google.com with SMTP id s198so4674943pgs.2 for ; Sun, 23 Dec 2018 07:38:31 -0800 (PST) Received: from captain (144.34.217.65.16clouds.com. [144.34.217.65]) by smtp.gmail.com with ESMTPSA id 202sm53189251pfy.87.2018.12.23.07.38.24 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 23 Dec 2018 07:38:28 -0800 (PST) From: Meiyo Peng Date: Sun, 23 Dec 2018 23:38:11 +0800 Message-ID: <87imzkfe3g.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 33849@debbugs.gnu.org --=-=-= Content-Type: text/plain Hi, This patch adds polybar to Guix. A beautiful and flexible status bar. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-polybar.patch >From e5871eaba91a1d5909fbc0ffcea767244204f644 Mon Sep 17 00:00:00 2001 From: Meiyo Peng Date: Sun, 23 Dec 2018 23:05:38 +0800 Subject: [PATCH] gnu: Add polybar. * gnu/packages/wm.scm (polybar): New variable. --- gnu/packages/wm.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 2e211e389..062790141 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -76,6 +76,7 @@ #:use-module (gnu packages lua) #:use-module (gnu packages linux) #:use-module (gnu packages suckless) + #:use-module (gnu packages mpd) #:use-module (guix download) #:use-module (guix git-download)) @@ -1051,3 +1052,45 @@ its size @item Display preview images in a tiled icon layout @end itemize") (license license:gpl2+))) + +(define-public polybar + (package + (name "polybar") + (version "3.2.1") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/jaagr/polybar/releases/" + "download/" version "/polybar.tar")) + (sha256 + (base32 "1zpsvh1n77bx7s6mqqh3ba828k9xbp35c2mjmcl9nywfp6r5ldqi")) + (file-name (string-append name "-" version ".tar")))) + (build-system cmake-build-system) + (arguments + ;; Test is disabled because it requires downloading googletest from the + ;; Internet. + '(#:tests? #f)) + (inputs + `(("alsa-lib" ,alsa-lib) + ("cairo" ,cairo) + ("i3-wm" ,i3-wm) + ("libmpdclient" ,libmpdclient) + ("libnl" ,libnl) + ("libxcb" ,libxcb) + ("pulseaudio" ,pulseaudio) + ("xcb-proto" ,xcb-proto) + ("xcb-util" ,xcb-util) + ("xcb-util-cursor" ,xcb-util-cursor) + ("xcb-util-image" ,xcb-util-image) + ("xcb-util-wm" ,xcb-util-wm) + ("xcb-util-xrm" ,xcb-util-xrm))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("python-2" ,python-2) ; lib/xpp depends on python 2 + ("python" ,python))) ; xcb-proto depends on python 3 + (home-page "https://polybar.github.io/") + (synopsis "Fast and easy-to-use status bar") + (description "Polybar aims to help users build beautiful and highly +customizable status bars for their desktop environment. It has built-in +functionality to display information about the most commonly used services.") + (license license:expat))) -- 2.20.0 --=-=-=--