From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mekeor Melire Subject: Re: [PATCH] gnu: Add dzen. Date: Fri, 03 Mar 2017 00:25:14 +0100 Message-ID: <871suftg6d.fsf@gmail.com> References: <20170214002828.4311f801@gmail.com> <20170214004121.GA21528@jasmine> <20170222011010.1b94f7ae@gmail.com> <20170302023401.GC23686@jasmine> <20170302023512.GA26338@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cja65-0007Mr-51 for guix-devel@gnu.org; Thu, 02 Mar 2017 18:25:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cja63-000874-Kq for guix-devel@gnu.org; Thu, 02 Mar 2017 18:25:21 -0500 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:36418) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cja63-00086g-D3 for guix-devel@gnu.org; Thu, 02 Mar 2017 18:25:19 -0500 Received: by mail-wr0-x242.google.com with SMTP id l37so11358290wrc.3 for ; Thu, 02 Mar 2017 15:25:17 -0800 (PST) In-reply-to: <20170302023512.GA26338@jasmine> Content-Disposition: inline; filename=0001-gnu-Add-dzen.patch Content-Description: gnu: Add dzen. List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Leo Famulari Cc: guix-devel@gnu.org >From d235a347a21d50902d42f161a6c840516eff9d42 Mon Sep 17 00:00:00 2001 From: Mekeor Melire Date: Fri, 3 Mar 2017 00:22:47 +0100 Subject: [PATCH] gnu: Add dzen. * gnu/packages/xdisorg.scm (dzen): New variable. --- gnu/packages/xdisorg.scm | 52 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 3d69661ba..e729bcac2 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -16,6 +16,7 @@ ;;; Copyright © 2016 Alex Kost ;;; Copyright © 2016 Marius Bakke ;;; Copyright © 2016 Petter +;;; Copyright © 2017 Mekeor Melire ;;; ;;; This file is part of GNU Guix. ;;; @@ -36,6 +37,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) @@ -1023,6 +1025,56 @@ border, and background. It also supports multihead setups, customized mouse actions, a built-in clock, a battery monitor and a system tray.") (license license:gpl2))) +(define-public dzen + (let ((commit "488ab66019f475e35e067646621827c18a879ba1") + (revision "1")) + (package + (name "dzen") + (version (string-append "0.9.5-" ; Taken from `config.mk`. + revision "." (string-take commit 7))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/robm/dzen.git") + (commit commit))) + (file-name (string-append name "-" version)) + (sha256 + (base32 + "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No test suite. + #:make-flags ; Replacement for `config.mk`. + (list + (string-append "VERSION = " ,version) + (string-append "PREFIX = " %output) + "MANPREFIX = ${PREFIX}/share/man" + "INCS = -I." + "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)" + "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\ + -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)" + "LDFLAGS = ${LIBS}" + "CC = gcc" + "LD = ${CC}") + #:phases + (modify-phases %standard-phases + (delete 'configure) ; No configuration script. + ;; Use own make-flags instead of `config.mk`. + (add-before 'build 'dont-include-config-mk + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "Makefile" (("include config.mk") ""))))))) + (inputs + `(("libx11" ,libx11) + ("libxft" ,libxft) + ("libxpm" ,libxpm) + ("libxinerama" ,libxinerama))) + (native-inputs `(("pkg-config" ,pkg-config))) + (synopsis "General purpose messaging, notification and menuing program for X11") + (description "Dzen is a general purpose messaging, notification and menuing +program for X11. It was designed to be fast, tiny and scriptable in any language.") + (home-page "https://github.com/robm/dzen") + (license license:expat)))) + (define-public xcb-util-xrm (package (name "xcb-util-xrm") -- 2.11.0