From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kOEJAkDep2RzBwAASxT56A (envelope-from ) for ; Fri, 07 Jul 2023 11:43:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gH+BAUDep2QO0gAAauVa8A (envelope-from ) for ; Fri, 07 Jul 2023 11:43:28 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8699BE6C5 for ; Fri, 7 Jul 2023 11:43:27 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=laesvuori.fi header.s=mail header.b=dAYQTxZK; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688723007; a=rsa-sha256; cv=none; b=W+3b+waWhNxygt7Usa0GLfFKe3NMG6q+Esu6vtKOIRibAyndxw4LTYYEQS3xU2wBZ8L8ya 8ch/0QdhWSxzoykFSQr8x3UhVs/nuDeAeMiFSbAyOcXl56BH8krT+xrpIR9y7iKq9FHbZP eld8PR+S57T5VTvgssjfJ+cjdZ1fbs1IMrEp4Cvx1IO95UjjHlTnc3E4dpwSxG/qlvPpSi zOAvuZXj7l3f8uJWAImhsHTuNlGDv6J/EELmmLUWO8wk62XuCKo75Zx4EXwXtxKrRHdU94 NH/965UfmQKdSeP/hu/GMdIPIC7dY/vIAJXG/7AqBDr3Q92ma5NBpdHd09rK3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=laesvuori.fi header.s=mail header.b=dAYQTxZK; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688723007; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=Gq45KNjap++Ur8ZCFOxB22kKphNQf5dKDXSI+rrI+y4=; b=kwChof1+vPt5SIHyYTTxavw6yNgK5Zdtr80vzo4K22E0USI3uqDmxkUzGzw9SNAEVpEmEj jkmBx26n4Y/SyJCut/0wBqF7n/LtMzdqZME18Lzfxh0uJl2/zqJ4BII16z70ZYP4omycK1 H+UE8C17InjXR2XG+756p1eLO3YcHWKFpCUxC6RR6yDu8nO4TYXN/kv4bQCDZ/QawgqyHj KdtGDlUJ1gqn4PloyqzWMlm2OpsFyfothD8cMkcDFwNitgiAw+A0Yuxp7W8gmnLxDjyQOk 47tXmDACO6b8eTOpaBQC9hVHDs3WiaoexYuOSEcoN0b7MsHEiGJnpvw6qAJWbg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHhzT-0001GB-Jz; Fri, 07 Jul 2023 05:43:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHhzR-0001Fn-Tb for guix-patches@gnu.org; Fri, 07 Jul 2023 05:43:01 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qHhzR-0002qi-Lk for guix-patches@gnu.org; Fri, 07 Jul 2023 05:43:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qHhzR-0004B7-Hm for guix-patches@gnu.org; Fri, 07 Jul 2023 05:43:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63799] [PATCH v2] gnu: Add ghc-xmobar Resent-From: Saku Laesvuori Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 07 Jul 2023 09:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63799 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Lars-Dominik Braun Cc: 63799@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 63799-submit@debbugs.gnu.org id=B63799.168872293616001 (code B ref 63799); Fri, 07 Jul 2023 09:43:01 +0000 Received: (at 63799) by debbugs.gnu.org; 7 Jul 2023 09:42:16 +0000 Received: from localhost ([127.0.0.1]:42569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHhyf-00049z-QO for submit@debbugs.gnu.org; Fri, 07 Jul 2023 05:42:16 -0400 Received: from vmi571514.contaboserver.net ([75.119.130.101]:44042 helo=mail.laesvuori.fi) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHhyZ-00049k-SY for 63799@debbugs.gnu.org; Fri, 07 Jul 2023 05:42:12 -0400 Received: from X-kone (88-113-24-127.elisa-laajakaista.fi [88.113.24.127]) by mail.laesvuori.fi (Postfix) with ESMTPSA id 86C3434014B; Fri, 7 Jul 2023 11:42:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=laesvuori.fi; s=mail; t=1688722936; bh=b866KaqTvieT23KtownRie7/0WoLejspDdUiUqnYrd0=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=dAYQTxZKHZqXUmuyvNI4A9QalD+tsqRY7SIG+N+Fzy7ao5tFZqCW1RHGdsIcaxEgP xQHFMw/YLibaWalXbSTtnm3W6FkuwVFoBmBkwKZPBl6nFW62IlTkrN3z9gC8Haibco E+di6/S+kLZRSI90z5RmAo93GTRYqRMQ6het96sg= Date: Fri, 7 Jul 2023 12:42:04 +0300 Message-ID: <20230707094204.ipay3bqnksyx3eci@X-kone> References: <20230530075453.30789-1-saku@laesvuori.fi> <87jzvjzojw.fsf@gnu.org> <138E85F5-FD22-4C38-A91F-C07765474A41@laesvuori.fi> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6nezrtugcohw2gwd" Content-Disposition: inline In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Saku Laesvuori X-ACL-Warn: , Saku Laesvuori via Guix-patches From: Saku Laesvuori via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.87 X-Migadu-Queue-Id: 8699BE6C5 X-Spam-Score: -3.87 X-TUID: D926iuc1YHBy --6nezrtugcohw2gwd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * gnu/packages/wm.scm (ghc-xmobar): New variable. (xmobar)[inputs]: Remove everything except libxpm. Add ghc-xmobar. [arguments]: Disable tests as they are run in ghc-xmobar. Configure only the xmobar executable. Remove unnecessary phases. [native-inputs]: Remove everything. --- gnu/packages/wm.scm | 43 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 46a1030490..728c9454c6 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -877,9 +877,9 @@ (define-public xmonad tiled on several screens.") (license license:bsd-3))) =20 -(define-public xmobar +(define-public ghc-xmobar (package - (name "xmobar") + (name "ghc-xmobar") (version "0.46") (source (origin (method url-fetch) @@ -896,17 +896,18 @@ (define-public xmobar ghc-alsa-mixer ghc-dbus ghc-hinotify - ghc-http + ghc-http-client-tls ghc-http-conduit ghc-http-types - ghc-iwlib ghc-libmpd ghc-netlink + ghc-cereal ghc-old-locale ghc-parsec-numbers ghc-regex-compat ghc-temporary ghc-timezone-olson + ghc-timezone-series ghc-x11 ghc-x11-xft ghc-cairo @@ -914,18 +915,44 @@ (define-public xmobar libxpm)) (arguments `(#:configure-flags (list "--flags=3Dall_extensions") - ;; Haddock documentation is for the library. - #:haddock? #f #:phases (modify-phases %standard-phases - (add-after 'register 'remove-libraries + (add-after 'install 'remove-binaries (lambda* (#:key outputs #:allow-other-keys) - (delete-file-recursively (string-append (assoc-ref outputs = "out") "/lib")))) + (delete-file-recursively (string-append (assoc-ref outputs = "out") "/bin")))) (add-before 'build 'patch-test-shebang (lambda* (#:key inputs #:allow-other-keys) (substitute* "test/Xmobar/Plugins/Monitors/AlsaSpec.hs" (("/bin/bash") (which "bash")))))))) (home-page "https://xmobar.org") + (synopsis "Haskell library for minimalistic text based status bars") + (description + "@code{ghc-xmobar} is the haskell library that @code{xmobar} is based= on. +It can be used to extend @code{xmobar} with other Haskell code.") + (license license:bsd-3))) + +(define-public xmobar + (package + (name "xmobar") + (version "0.46") + (source (origin + (method url-fetch) + (uri (hackage-uri "xmobar" version)) + (sha256 + (base32 + "0glpiq7c0qwfcxnc2flgzj7afm5m1a9ghzwwcq7f8q27m21kddrd")))) + (build-system haskell-build-system) + (properties '((upstream-name . "xmobar"))) + (inputs + (list ghc-xmobar + libxpm)) + (arguments + `(#:configure-flags (list "--flags=3Dall_extensions" "exe:xmobar") + ;; Haddock documentation is for the library. + #:haddock? #f + ;; Tests are for the library. + #:tests? #f)) + (home-page "https://xmobar.org") (synopsis "Minimalistic text based status bar") (description "@code{xmobar} is a lightweight, text-based, status bar written in base-commit: 961ffca1c75141cbb351d143b22b673638e9659d --=20 2.40.1 --6nezrtugcohw2gwd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoMkZR3NPB29fCOn/JX0oSiodOjIFAmSn3ewACgkQJX0oSiod OjKuFA/8CyAsJN++8TMz1PrksYy4KM9CYtozLm2XAudJ7zYzjaI0P3vNrOgb5Fff aopo9hdkWyo/l0Ao16CJcQB6ywZSpoum/XvDjXWXWB6w+4qmiKGE4J+TJKkNrXET m4YvbJDonHLCgo+E9KJQjO2myBYiz1U9+mnNL76JKCSB2cwRPHlo+Zc0Uidgux7b FIbck0iKMI6kkg0cbv2BrP86F6Yfe20d0/r4C6HZ2XGYFuqjh2Fy2l/7AYcwRsmy cEtnIMKop6asVRqKWoPdIFKqs+aI1+wSxOPDZQyDqtTtrXu7StuZ3EPzpg/yEdIo i6kkurwrlB6F/bLiSNt/zSaIP/mDaaNaePuL1V8K3hTlBfR1+nRGpWzqIe9ZmCYO ZMRn1ZiZbcj0XfhQKLAPD2hHw6jKyq4d2UOFDI3oTVdAPon2ZCPactLqrgIwqIFp aZya1jmGmUsoDLOzNfgR3MUXOQ6EhQyUxfX45h/J35AYSzKoscDzvry/vsd6CF0+ 3gJ2gys+VpBlkD/LPe5N9R8ZmS+7VEwEIY6tyVRcORKqxwqh4X/kL09Lom4hCUA6 8/HFlu0RRAv/hZJ4LGPPZ826ropZ6wvvNG8tX1UHhE4S0p+9jTNMQXH4BVHuns2K VtxofXVUvfJDMNlsvi+etuaQVOGzZc5aieIEg2psGWJxcDD9lrE= =xou4 -----END PGP SIGNATURE----- --6nezrtugcohw2gwd--