From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCKyR-0004am-Jd for guix-patches@gnu.org; Tue, 16 Oct 2018 04:45:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCKyN-0004r0-4O for guix-patches@gnu.org; Tue, 16 Oct 2018 04:45:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47510) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCKyM-0004q0-P6 for guix-patches@gnu.org; Tue, 16 Oct 2018 04:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gCKyM-00028L-HS for guix-patches@gnu.org; Tue, 16 Oct 2018 04:45:02 -0400 Subject: [bug#33058] [PATCH] gnu: Add i3blocks. Resent-Message-ID: Received: from eggs.gnu.org ([208.118.235.92]:47888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCKxC-0004MU-4D for guix-patches@gnu.org; Tue, 16 Oct 2018 04:43:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCKwg-00030E-7s for guix-patches@gnu.org; Tue, 16 Oct 2018 04:43:37 -0400 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]:38664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCKwf-0002vs-Fh for guix-patches@gnu.org; Tue, 16 Oct 2018 04:43:18 -0400 Received: by mail-pl1-x641.google.com with SMTP id q19-v6so7592031pll.5 for ; Tue, 16 Oct 2018 01:43:14 -0700 (PDT) Received: from dinosaur ([27.17.20.242]) by smtp.gmail.com with ESMTPSA id w187-v6sm13019062pfw.3.2018.10.16.01.43.12 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Oct 2018 01:43:12 -0700 (PDT) From: Meiyo Peng Date: Tue, 16 Oct 2018 16:43:11 +0800 Message-ID: <87pnwa8eow.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: 33058@debbugs.gnu.org Hello, I created a package for i3blocks. This is my first guix package, so forgive me if i did anything wrong. >From 6116bec4d60175e2d1fb12da75c803962ddb3ec7 Mon Sep 17 00:00:00 2001 From: Meiyo Peng Date: Tue, 16 Oct 2018 15:16:43 +0800 Subject: [PATCH] gnu: Add i3blocks. * gnu/packages/wm.scm (i3blocks): New variable. --- gnu/packages/wm.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 7c58770de..d5e191770 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -17,6 +17,7 @@ ;;; Copyright =C2=A9 2017 Oleg Pykhalov ;;; Copyright =C2=A9 2018 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2018 Pierre-Antoine Rouby +;;; Copyright =C2=A9 2018 Meiyo Peng ;;; ;;; This file is part of GNU Guix. ;;; @@ -233,6 +234,46 @@ from scratch. i3 is primarily targeted at advanced us= ers and developers.") (license license:bsd-3))) =20 +(define-public i3blocks + (let ((commit "37f23805ff886639163fbef8aedba71c8071eff8") + (revision "1")) + (package + (name "i3blocks") + (version (string-append "1.4-" revision "." + (string-take commit 7))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vivien/i3blocks.git") + (commit commit))) + (sha256 + (base32 + "15rnrcajzyrmhlz1a21qqsjlj3dkib70806dlb386fliylc2kisb")) + (file-name (string-append name "-" version "-checkout")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags (list "CC=3Dgcc" (string-append "PREFIX=3D" %output)) + #:phases (modify-phases %standard-phases + (add-after 'unpack 'autogen + (lambda _ (invoke "sh" "autogen.sh"))) + (add-after 'install 'install-doc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (man1 (string-append out "/share/man/man1")= )) + (install-file "docs/i3blocks.1" man1))))) + #:tests? #f)) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("pkg-config" ,pkg-config))) + (home-page "https://github.com/vivien/i3blocks") + (synopsis "Minimalist scheduler for status bar scripts") + (description "i3blocks executes your command lines and generates a +status line from their output. The generated line is meant to be displaye= d by +the i3 window manager through its i3bar component, as an alternative to +i3status.") + (license license:gpl3+)))) + (define-public perl-anyevent-i3 (package (name "perl-anyevent-i3") --=20 2.19.1