From patchwork Sat Sep 14 21:04:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyle Andrews X-Patchwork-Id: 15373 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 99B11173C4; Sat, 14 Sep 2019 22:05:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id ECA24173C2 for ; Sat, 14 Sep 2019 22:05:10 +0100 (BST) Received: from localhost ([::1]:52342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9FEE-00008n-Dh for patchwork@mira.cbaines.net; Sat, 14 Sep 2019 17:05:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43651) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9FE8-00008Q-B2 for guix-patches@gnu.org; Sat, 14 Sep 2019 17:05:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i9FE7-0003I1-1c for guix-patches@gnu.org; Sat, 14 Sep 2019 17:05:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38381) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i9FE6-0003H2-V2 for guix-patches@gnu.org; Sat, 14 Sep 2019 17:05:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i9FE6-0003WF-Lk for guix-patches@gnu.org; Sat, 14 Sep 2019 17:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37404] add herbstluftwm window manager package (v0.7.2) to guix (gnu/packages/wm.scm) Resent-From: Kyle Andrews Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 14 Sep 2019 21:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37404 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 37404@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156849508013486 (code B ref -1); Sat, 14 Sep 2019 21:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Sep 2019 21:04:40 +0000 Received: from localhost ([127.0.0.1]:47202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9FDj-0003VS-T0 for submit@debbugs.gnu.org; Sat, 14 Sep 2019 17:04:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:46114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9FDh-0003VI-Jl for submit@debbugs.gnu.org; Sat, 14 Sep 2019 17:04:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43633) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9FDg-0008Ru-6P for guix-patches@gnu.org; Sat, 14 Sep 2019 17:04:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i9FDe-00039t-N6 for guix-patches@gnu.org; Sat, 14 Sep 2019 17:04:35 -0400 Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]:40064) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i9FDe-00039W-Et for guix-patches@gnu.org; Sat, 14 Sep 2019 17:04:34 -0400 Received: by mail-io1-xd2f.google.com with SMTP id h144so70166334iof.7 for ; Sat, 14 Sep 2019 14:04:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:mime-version; bh=ntqZ7REpfhQUsdjPbA419ArheoH226z/vFbZzt/U/KI=; b=aVf7mMZ5L0JFcxNVhHO/2EQIQPqnhbpSvBkuoGhMMj1oQsLErQevJHbr8tnxbhiOgB Xc0czRduHgSWGnqdlOaOeb0wmNRiZHRwOMgJBw8kDunYMqhNkt3bsv/RdX2uZ558eXiQ w1kYy2AaGf42X9pM1dcO0R9JQ2bYdrbGqMpWLzFBMPfk8HXtmxCnzC/RMsxT0HjqGqMp CH/NnYU2Ou392H4t6kVzvzwNQTND9dI5P8UiFY53T7Uzkh22pPPPdVzIo3DX3FiuTlOw fwdxf/yixBu9/1Ty+jstdhCjw0Uq4MFqXPdSHraDBKRtEhxirVeMhj/1psLkgxJ9r5MX B7VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:mime-version; bh=ntqZ7REpfhQUsdjPbA419ArheoH226z/vFbZzt/U/KI=; b=Xp/Mfc5pZb7kL76z/kgYQUob1R5betlaXLxJuA8qvDn86j6bxAXIl48tl1dxeBhMUl VwQceFlwTV52+bUtHMCQsqAPZ+D+v+KOzc1vK8Uf5h3ZfPDMkN7WBvSplkkLUDGx+EG8 8am/XfSTVm4ClP9tD+52hWdbvZsZufS9jfu6wNexEfJS9TpKQXYb7z0pgC05n/sDzTNg tbdzWHHo/sTC4szd0YNdI/hET3RIR638P3ncTi9FsXq83inh0OizMv2eYoaKQMEL4tHM VtgrZ3/cL5Z8qAQLCLU/aczLsYfVMPhMttszXvvBCJm+GUPhHWXPUjXupLWJ8+0PYRUq OK+g== X-Gm-Message-State: APjAAAXRaJCiamE5N7K/S7TrbpTZ4cW+EILwtzpqpNgfY6QmkrbhfIuN RKRusBT10Nv7I940AStS72jHaqyU X-Google-Smtp-Source: APXvYqwTCxdbJpEYYHrGhnJZ4Y9qOisqI2traGUtU2maomv+zP9ddHeex26J7MhU0yP4EvaXJjVOkg== X-Received: by 2002:a6b:ee18:: with SMTP id i24mr7904732ioh.52.1568495072883; Sat, 14 Sep 2019 14:04:32 -0700 (PDT) Received: from [192.168.2.52] (71-82-69-114.dhcp.bycy.mi.charter.com. [71.82.69.114]) by smtp.googlemail.com with ESMTPSA id k7sm2401968iob.80.2019.09.14.14.04.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2019 14:04:31 -0700 (PDT) Message-ID: From: Kyle Andrews Date: Sat, 14 Sep 2019 17:04:30 -0400 In-Reply-To: <92658660d50853e4eec92f536d8b3eb720aab911.camel@gmail.com> References: <92658660d50853e4eec92f536d8b3eb720aab911.camel@gmail.com> X-Mailer: Evolution 3.28.1 Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches I'd like to provide a package definition for the herbstluftwm window manager so that it may be included into guix. Please see the attached patch. Regards, Kyle Andrews From 2d8537fc42c3424024d2f20aeb618e2ad1b5998c Mon Sep 17 00:00:00 2001 From: Kyle Andrews Date: Sat, 14 Sep 2019 15:43:53 -0400 Subject: [PATCH] Add herbstluftwm to the list of available window managers. --- gnu/packages/wm.scm | 62 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index c4b15cc755..d81a916ff3 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -89,6 +89,7 @@ #:use-module (gnu packages pretty-print) #:use-module (gnu packages logging) #:use-module (gnu packages serialization) + #:use-module (gnu packages bash) #:use-module (gnu packages commencement) ; TODO remove when default gcc version >=7 #:use-module (guix download) #:use-module (guix git-download)) @@ -128,6 +129,67 @@ the leaves of a full binary tree.") (license license:bsd-2))) + +(define-public herbstluftwm + (package + (name "herbstluftwm") + (version "0.7.2") + (source + (origin + (method url-fetch) + (uri (string-append "https://herbstluftwm.org/tarballs/herbstluftwm-" + version + ".tar.gz")) + (sha256 + (base32 + "1kc18aj9j3nfz6fj4qxg9s3gg4jvn6kzi3ii24hfm0vqdpy17xnz")) + (file-name (string-append "herbstluftwm-" version ".tar.gz")))) + (build-system gnu-build-system) + (inputs `(("dzen" ,dzen) + ("dmenu" ,dmenu) + ("glib" ,glib) + ("glibmm" ,glibmm) + ("xterm" ,xterm) + ("bash" ,bash) + ("xsetroot" ,xsetroot) + ("libx11" ,libx11) + ("libxext" ,libxext) + ("libxinerama" ,libxinerama))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (arguments + '(#:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'check) + (add-after 'install 'install-xsession + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (xsessions (string-append out "/share/xsessions"))) + (mkdir-p xsessions) + (call-with-output-file + (string-append xsessions "/herbstluftwm.desktop") + (lambda (port) + (format port "~ + [Desktop Entry]~@ + Name=herbstluftwm~@ + Comment=Manual tiling window manager~@ + Exec=~a/bin/herbstluftwm~@ + Type=XSession~%" out))))))) + #:tests? #f + #:make-flags + (let ((out (assoc-ref %outputs "out"))) + (list "CC=gcc" + (string-append "PREFIX=''") + (string-append "DESTDIR=" out) + (string-append "BASHCOMPLETIONDIR=" out + "/etc/bash_completion.d"))))) + (synopsis "Herbstluftwm Window Manager for X11") + (description "X11 Tiling Window Manager") + (home-page "https://herbstluftwm.org") + (license license:bsd-2))) + + (define-public i3status (package (name "i3status") -- 2.23.0