From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id sLQ+B4T1UGU+2gAAauVa8A:P1 (envelope-from ) for ; Sun, 12 Nov 2023 16:55:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sLQ+B4T1UGU+2gAAauVa8A (envelope-from ) for ; Sun, 12 Nov 2023 16:55:48 +0100 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 E6AAE619CA for ; Sun, 12 Nov 2023 16:55:47 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hallsby.com header.s=google header.b=mlqQmuTw; 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=1699804548; 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: content-transfer-encoding:content-transfer-encoding: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=nLLfQPlMIWJXYF4IaQDu4Ru6MRTNSQ/+2GOCV4+t8A0=; b=GNwToXkF3BkCKhTV47DRsAm4eiUeb7kEom1ktzZ1A0i0sciwubrRAxtRqkBGpNvK0KnQYs iyQ/Oam6RmfWFJNDXblIawC+NJMrbmRFY3ioTIB9vFNzr6y8/aU+u7aFctiL22K5Rvdmnb 8wsYBFuHrWm87C0a2Fv/XxGicJ3JCO+3TEBL6Ek9bUlUT2O0qL9Q4b20C2yhYpDQlDJOod MOMFXUqpJrt+FUrFpD9nMRRrCxmzy6AAZqWuw7iVBnSltox8cqEkCsRfmj1EAkVhId3/Ul qXH12lmh2cPSBQEbdoEvrqM5vWkCrmsGmbLW25Ly1DOu0q9k9o+Q/o0DfnBQ0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hallsby.com header.s=google header.b=mlqQmuTw; 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=1699804548; a=rsa-sha256; cv=none; b=UdNyl3X0+0QVPPHxGQzMWR0UCLhQEH6Fw+rqfaMdi62VWRhiPUNhkM+5g+MmCUHcM7ebfw fmFK4qZOlIonhKUFBeJAjgBrv2my1po5gs8+IpSqGg1C0Ghc7bNeXaBhHoxaUuaXWXnB/5 gOYShljGxfwhD7DOFjUhaC7uqQKxD/pv4WjZIgrnLQCS7/eLSxMOrbrEhquD5AZqDBweAk Fp2WmFSXY2GcbsKH+Jum8f6Z2LM3nuOjT7nGvbNAHtXJbk5MfOGqFfy/GXs+alyoo7KqVI fU6GZJFFhuInQLCdgHJfogxOsTJJNdXJeoGQnLca4udWrEWnJ/5QQMBLFjSUnw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r2Co3-000182-1y; Sun, 12 Nov 2023 10:55:27 -0500 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 1r2Cnx-00017V-Tr for guix-patches@gnu.org; Sun, 12 Nov 2023 10:55:23 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r2Cnx-0004Pk-H6 for guix-patches@gnu.org; Sun, 12 Nov 2023 10:55:21 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r2Cob-0001Tj-VT for guix-patches@gnu.org; Sun, 12 Nov 2023 10:56:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66623] [PATCH] gnu: Add mahogany References: In-Reply-To: Resent-From: Karl Hallsby Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Nov 2023 15:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66623 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66623@debbugs.gnu.org Cc: Karl Hallsby Received: via spool by 66623-submit@debbugs.gnu.org id=B66623.16998045135602 (code B ref 66623); Sun, 12 Nov 2023 15:56:01 +0000 Received: (at 66623) by debbugs.gnu.org; 12 Nov 2023 15:55:13 +0000 Received: from localhost ([127.0.0.1]:56789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2Cnp-0001SI-8L for submit@debbugs.gnu.org; Sun, 12 Nov 2023 10:55:13 -0500 Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]:56415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2Cnk-0001Rx-4e for 66623@debbugs.gnu.org; Sun, 12 Nov 2023 10:55:11 -0500 Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-6cf65093780so2229461a34.0 for <66623@debbugs.gnu.org>; Sun, 12 Nov 2023 07:54:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hallsby.com; s=google; t=1699804461; x=1700409261; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nLLfQPlMIWJXYF4IaQDu4Ru6MRTNSQ/+2GOCV4+t8A0=; b=mlqQmuTwEOfnrj18u+MPIWhhZ50oEVWJZ0CnTTQ1BRMVD8ShiJOzq4kR9Zp5SMHjLb myIEh+U7djoorQmpBId7cQpZcSi1F/WHiI0cx7VqRqFEXv4eyrRjgDLys8vvorZtHfxV m2Wmon6eAhzaBej2/1wrwrAtBp/7eHpWrsG3BkXPhnxJWN5kj93n10vFKwpN6KoXDczH EC7L0rSnM7QvFMo1wtmTIUg1/Ez4csExHWw9hcP6KEDV5s/Me7r6yNf6N3g+sgqpwB5Y XxjazUtTwiS2gcQ/KdnijwKNuEz6VD0CfSt0mm/k6NGw54TkB776bOjyjE6ZjHo+hO1h ybkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699804461; x=1700409261; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nLLfQPlMIWJXYF4IaQDu4Ru6MRTNSQ/+2GOCV4+t8A0=; b=MOqfu4yC+VeT78+M30ICB9EVrqqSrVl89J1J+lu2T8fVtWZDZpYlh2szPUD5LoUuUF Lfa4H6fXseWNmyX/6dqxcbOkoB/kxWQ+iXSYATDOjVEo1t6nMTVTMDAYmR/jQX8NANjY x70AgjFTBsM100NTCENeM3Xs/pz9aTepsZ4uQWZK3/TbDJKDIoByjCGP/YxB+iZmBUtf +oZ7MKj58qwyDKHnUtAbBDtCzJ/LF7mT/vM4FQS55BNSddWeEv57wnuMFLhtBmMd+5xZ xfSvQn0XjepjZzOv9pxDU8xrXq1gtrPX3whOLtNGj8RliXMqZrD+/u1jpR1yg0eEBmJ+ 0E9w== X-Gm-Message-State: AOJu0YzeHybtbxk0GbghsBq2If3XBPqujq9x9/J5fbx12RNCWRRambjP 3hNzVWatcrFlYAspfIl1I7AUhnJ5alOPKIMr+W0= X-Google-Smtp-Source: AGHT+IFHcGyCzMZKroUyDvZO3lv1kgoH8opxtxnzFP8S1GL8biDtmBYHeXblaIbGCmfVkwd0dLcCyA== X-Received: by 2002:a9d:6643:0:b0:6bc:fab5:e996 with SMTP id q3-20020a9d6643000000b006bcfab5e996mr5232384otm.31.1699804461109; Sun, 12 Nov 2023 07:54:21 -0800 (PST) Received: from avocato.23.scconf.org ([2001:468:1f07:9b:ba10:3462:f5f6:499e]) by smtp.gmail.com with ESMTPSA id r6-20020a4a4e06000000b0058a1ae9e0ddsm678037ooa.2.2023.11.12.07.54.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Nov 2023 07:54:20 -0800 (PST) Date: Sun, 12 Nov 2023 09:54:13 -0600 Message-ID: <20231112155415.8342-1-karl@hallsby.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Karl Hallsby X-ACL-Warn: , Karl Hallsby via Guix-patches From: Karl Hallsby 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.60 X-Spam-Score: -6.60 X-Migadu-Queue-Id: E6AAE619CA X-Migadu-Scanner: mx10.migadu.com X-TUID: 7dtQnEa7DOCb * gnu/packages/wm.scm (New variable): Add mahogany window manager. gnu: Add mahogany-heart package * gnu/packages/wm.scm (New variable): Add mahogany-heart package at same revision as mahogany. --- gnu/packages/wm.scm | 120 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 8576d0297d..745dc939ee 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -64,6 +64,7 @@ ;;; Copyright © 2023 Jonathan Brielamier ;;; Copyright © 2023 Vessel Wave ;;; Copyright © 2023 Nicolas Graves +;;; Copyright © 2023 Raven Hallsby ;;; ;;; This file is part of GNU Guix. ;;; @@ -2614,6 +2615,125 @@ (define-public sbcl-stumpwm-battery-portable modeline. It can be displayed in the modeline with %B.") (license (list license:expat license:gpl3+)))) +(define-public mahogany + (let ((commit "4b6b5f8667d8bfa07b889e9298e995f8eebb20bd") + (revision "0")) + (package + (name "mahogany") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/stumpwm/mahogany") + (commit commit))) + (file-name (git-file-name "mahogany" version)) + (sha256 + (base32 "11kffkkimfk689r5cc351kxr7dadcj3d8dhm2ffvd5b2lz9jwlqp")))) + (build-system asdf-build-system/sbcl) + (native-inputs + (list sbcl-fiasco + sbcl-prove)) + (inputs + (list mahogany-heart + sbcl-xkbcommon + libxkbcommon + sbcl-cl-wayland + sbcl-alexandria + sbcl-cl-ansi-text + sbcl-terminfo + sbcl-snakes + sbcl-iterate + sbcl-cffi ;; Provides cffi-grovel + wayland + wayland-protocols + wlroots)) + (outputs '("out" "lib")) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'delete-submodules + (lambda* (#:key outputs #:allow-other-keys) + (delete-file-recursively "./dependencies") + (delete-file-recursively "./heart"))) + (add-after 'delete-submodules 'fix-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "lisp/bindings/hrt-libs.lisp" + (("libheart.so") + (search-input-file inputs + "/lib/libheart.so")) + (("libwlroots.so") + (search-input-file inputs + "/lib/libwlroots.so"))))) + (add-after 'create-asdf-configuration 'build-program + (lambda* (#:key outputs #:allow-other-keys) + (build-program + (string-append (assoc-ref outputs "out") "/bin/mahogany") + outputs + #:entry-program '((mahogany::run-server) 0)))) + (add-after 'build-program 'create-desktop-file + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (xsessions (string-append out "/share/xsessions")) + (wayland-sessions (string-append out "/share/wayland-sessions"))) + (define (desktop-file file) + (format file + "[Desktop Entry]~@ + Name=stumpwm~@ + Comment=The Mahogany Window Manager~@ + Exec=~a/bin/mahogany~@ + TryExec=~@*~a/bin/mahogany~@ + Icon=~@ + Type=Application~%" + out)) + (mkdir-p xsessions) + (call-with-output-file + (string-append xsessions "/mahogany.desktop") + desktop-file) + (mkdir-p wayland-sessions) + (call-with-output-file + (string-append wayland-sessions "/mahogany.desktop") + desktop-file))))))) + (synopsis "Window manager for Wayland written in Common Lisp") + (description + "Mahogany is a tiling window manager for Wayland modeled after StumpWM. +While it is not a drop-in replacement for stumpwm, stumpwm users should be +very comfortable with Mahogany.") + (home-page "https://github.com/stumpwm/mahogany") + (license license:gpl2+)))) + +(define-public mahogany-heart + (package + (name "mahogany-heart") + (version (package-version mahogany)) + (source (package-source mahogany)) + (build-system meson-build-system) + (native-inputs + (list pkg-config)) + (inputs + (list wlroots + libxkbcommon)) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ (chdir "heart"))) + (add-after 'chdir 'delete-submodules + (lambda* (#:key outputs #:allow-other-keys) + (delete-file-recursively "./subprojects")))))) + (synopsis "An alternative C backend to a Wayland compositor to use with Mahogany") + (description + "Mahogany-heart's task is to setup the initial state of the +compositor, render the output, and initially handle new connections to +the compositor. If needed, the backend will also wrap some wlroots +functions so that less foreign code needs to be called from the other +language. is a tiling window manager for Wayland modeled after +StumpWM.") + (home-page (package-home-page mahogany)) + (license (package-license mahogany)))) + (define-public lemonbar (package (name "lemonbar") base-commit: 970e69bdc78023b444ab3d9a81b07b1a02fc9ab1 -- 2.41.0