From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLx1O-00040H-44 for guix-patches@gnu.org; Fri, 16 Jun 2017 15:35:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLx1K-0004w9-3N for guix-patches@gnu.org; Fri, 16 Jun 2017 15:35:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:49032) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLx1K-0004vg-0A for guix-patches@gnu.org; Fri, 16 Jun 2017 15:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dLx1J-0003Fy-RZ for guix-patches@gnu.org; Fri, 16 Jun 2017 15:35:01 -0400 Subject: [bug#27279] [PATCH] gnu: Add tmuxifier. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLx0E-0003xu-33 for guix-patches@gnu.org; Fri, 16 Jun 2017 15:33:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLx0A-0003yJ-3E for guix-patches@gnu.org; Fri, 16 Jun 2017 15:33:54 -0400 Received: from dd5424.kasserver.com ([85.13.138.252]:44601) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dLx09-0003vc-Ow for guix-patches@gnu.org; Fri, 16 Jun 2017 15:33:50 -0400 Received: from localhost (194-96-154-21.hdsl.highway.telekom.at [194.96.154.21]) by dd5424.kasserver.com (Postfix) with ESMTPA id D5C07B5827E7 for ; Fri, 16 Jun 2017 21:33:46 +0200 (CEST) From: Stefan =?UTF-8?Q?Reich=C3=B6r?= In-Reply-To: (Thomas Danckaert's message of "Fri, 16 Jun 2017 15:32:54 +0200") References: <87o9tzplif.fsf@xsteve.at> Date: Fri, 16 Jun 2017 21:33:46 +0200 Message-ID: <87efujralh.fsf@xsteve.at> 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: 27279@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thomas Danckaert writes: > Stefan Reich=C3=B6r writes: > >> + (source (origin >> + (method url-fetch) >> + (uri (string-append >> + "https://github.com/jimeh/tmuxifier/archive/v" >> + version ".tar.gz")) >> + (sha256 >> + (base32 >> + "1j9fj6zg0j3sdn7svpybzsqh7876rv81zi437976kj7hxnyjkcz7"))= )) > > guix lint asks to add > > (file-name (string-append name "-" version ".tar.gz")) > > to the source, so the downloaded tarball in the store is easily > recognizable. Other than that, it looks good to me, so I can push with > that change, assuming it works (not a tmux user myself :) ). > > cheers, > > Thomas Thanks for your review. I have added the file-name hint. guix lint asked me to change '...' to @code{...}. So I changed this as well. Stefan. --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-tmuxifier.patch Content-Transfer-Encoding: quoted-printable >From 85de44861bed37fb213aaf5dd9af331c7042fe18 Mon Sep 17 00:00:00 2001 From: Stefan Reichoer Date: Fri, 16 Jun 2017 21:30:24 +0200 Subject: [PATCH] gnu: Add tmuxifier. * gnu/packages/tmux.scm (tmuxifier): New variable. --- gnu/packages/tmux.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/tmux.scm b/gnu/packages/tmux.scm index 5b92df8..0ffc3b9 100644 --- a/gnu/packages/tmux.scm +++ b/gnu/packages/tmux.scm @@ -3,6 +3,7 @@ ;;; Copyright =C2=A9 2016 Efraim Flashner ;;; Copyright =C2=A9 2016 Matthew Jordan ;;; Copyright =C2=A9 2017 Vasile Dumitrascu +;;; Copyright =C2=A9 2017 Stefan Reich=C3=B6r ;;; ;;; This file is part of GNU Guix. ;;; @@ -89,3 +90,48 @@ continue running in the background, then later reattache= d.") (description "A collection of various themes for Tmux.") (license (non-copyleft "http://www.wtfpl.net/txt/copying/"))))) + +(define-public tmuxifier + (package + (name "tmuxifier") + (version "0.13.0") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/jimeh/tmuxifier/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1j9fj6zg0j3sdn7svpybzsqh7876rv81zi437976kj7hxnyjkcz7")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:phases (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref %outputs "out")) + (bindir (string-append out "/bin")) + (share (string-append out "/share/" ,name))) + (install-file "bin/tmuxifier" bindir) + (substitute* (string-append bindir "/tmuxifier") + (("set -e") + (string-append "TMUXIFIER=3D" share "\nset -e")= )) + (for-each (lambda (init-script) + (install-file init-script (string-appe= nd + share "/ini= t"))) + '("init.sh" "init.tcsh" "init.fish")) + (for-each (lambda (dir) + (copy-recursively dir (string-append + share "/" dir))) + '("completion" "lib" "libexec" + "templates")))))))) + (home-page "https://github.com/jimeh/tmuxifier") + (synopsis "Powerful session, window & pane management for Tmux") + (description "Tmuxifier allows you to easily create, edit, and load +@code{layout} files, which are simple shell scripts where you use the tmux +command and helper commands provided by tmuxifier to manage Tmux sessions = and +windows.") + (license expat))) --=20 2.7.4 --=-=-=--