From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id cI6lOL32UGVxiAAAauVa8A:P1 (envelope-from ) for ; Sun, 12 Nov 2023 17:01:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cI6lOL32UGVxiAAAauVa8A (envelope-from ) for ; Sun, 12 Nov 2023 17:01:02 +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 8789314305 for ; Sun, 12 Nov 2023 17:01:01 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hallsby.com header.s=google header.b=MyrMfv6l; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699804861; 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=VGY9a0x8CYqUNX7TRHfMeWAclK0FnppvZBrH/EqWsDTv/8kvkKIprxni2x1f9xDox098xA T8Sv2KSYBnl2elUXrYucN8+0soYwCXBVCalPVt0TJpuanTpWcm0W0MJjuc4DpJ56ihTvu0 d9GQLUv3FN5wTrBH2w9mYnQcGCXVBVESFkfVp/9tQCFpRhyzxUE2h00a0KIzPzwTUmGMeZ OSgjQURO6f17ail0rXBhd1OXjyAkybeBU3s+EIiuzARRmGs4au9y6QofhgB+/XVZ1LyI92 DeYiGsBLtalRitg1UJLGMX0mwuWRVVutGR4IqvKjxKo44zWvlPJVY6lvlZXsXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hallsby.com header.s=google header.b=MyrMfv6l; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699804861; a=rsa-sha256; cv=none; b=Mkbp4a/81wOVyLmGok6AKer1JyYOE34QQOMKTdQrPZr+EtxxW3ocBkq2k10rUxfeU8vHHS w5IZRVUiEzkU0MqQEgnM1IykCy7gkMADfhmG1rkuu6j4E6cJbhYK6Gf5KDJkEEpQXouEt/ bfttUVOwXiKgxr3Que+74GcAxTcbZN/OjZhHv7fDEzFY49IXJiFsipBSxQ1F4PVPtBa3HQ Yo2/kyxxXUcc92IWqn+lBMYpZQOFeI5Kfmwjfj8V+/mHJBz4lGwkbmXx9z6kLXFmeP1hPl 7UCpHFIaFWo88ErfTGE+xu2lhT2bqn+VJ0Zd7a+Ek2tL7mjHxaGFdK8keVlEUg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r2Ct1-0001kJ-U4; Sun, 12 Nov 2023 11:00:36 -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 1r2Csn-0001ik-OC for guix-patches@gnu.org; Sun, 12 Nov 2023 11:00:31 -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 1r2Csn-0005rU-FK for guix-patches@gnu.org; Sun, 12 Nov 2023 11:00:21 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r2CtS-0001el-DZ for guix-patches@gnu.org; Sun, 12 Nov 2023 11:01:02 -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 16:01:02 +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.16998048286300 (code B ref 66623); Sun, 12 Nov 2023 16:01:02 +0000 Received: (at 66623) by debbugs.gnu.org; 12 Nov 2023 16:00:28 +0000 Received: from localhost ([127.0.0.1]:56800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2Csu-0001dX-6e for submit@debbugs.gnu.org; Sun, 12 Nov 2023 11:00:28 -0500 Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]:56419) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2Css-0001dC-Iz for 66623@debbugs.gnu.org; Sun, 12 Nov 2023 11:00:27 -0500 Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-6cf65093780so2230821a34.0 for <66623@debbugs.gnu.org>; Sun, 12 Nov 2023 07:59:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hallsby.com; s=google; t=1699804780; x=1700409580; 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=MyrMfv6l1keTC+sw2c/RLYn2hDTGCWR4wcHeImQAPSkj2VPEULAkIMkBYJVND2Z2p/ gKJt77iv8Rdox22uO401B9qZ2TvAxpdmueFGrMoav1OV/OAuAuqe6TtPZBKiLqmEImJC Lq56ISReAoj6WWsK7zaXcMbEYEt0gesNhQofuaLhHgylgkEho/UFhsdQ73m2jbcjlYuB xHQgbUckvM0+M+hJFZlkJQMJLS7wwyGHxiLdUMSZiJCnQXS35061+/qaEEE7HvPp64iw rq9P3ZkOqWMefLoFTBtKDzs/4aLzDboza25Ta/nD0Tbrsho4TA0v7V2aJkUeSVPTuY1z hW4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699804780; x=1700409580; 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=L3xLq3cFsZRxnflxbgVJDEvaiTEBnRWGc3mr0muIX5vJmks+AMXa4g5ECxA2N1IgO9 zXQHJXkasD9ezfBT7BJ5OfCc6VdejdG8X3TicqaOHTrXOCKRPih55IrZSoniO5ZmtKsR jmjFwaJ2GOMDae3UP88YW5tpUYCwKnJ4uV/MmALa6ezb+tabFjvaCXYtFoCEPDqiN6p6 7LtYLYfjSFGzLzJUktTR/IJXZo7WwbMWtaMlQtM3oYaEDum84td2n/xN91Fmu/VBZdvD WFAun2vzIkaJWxXHKS4MpZurnsm15nqsN2fNYT98cPuh8RMBLPSw1Ks1njWBhslTRDSj DG3w== X-Gm-Message-State: AOJu0YxYeozlutu7OcYVspnKDtS8f8haR85M+9GFVAk1T3I34prjSsWJ kbpOO+r2M+7iDwZSGr/KTGy8pqFlGOfM63YsdOQ= X-Google-Smtp-Source: AGHT+IG27Xz4MMQQUCQRVtcGyRFTHimvy9HeJ3eK3ufJ1Z6eBGDhDdMYXVM7lQLrR2z5G27+vhEjdA== X-Received: by 2002:a05:6830:1b76:b0:6cf:6837:e4aa with SMTP id d22-20020a0568301b7600b006cf6837e4aamr5055554ote.27.1699804779727; Sun, 12 Nov 2023 07:59:39 -0800 (PST) Received: from avocato.23.scconf.org ([2001:468:1f07:9b:ba10:3462:f5f6:499e]) by smtp.gmail.com with ESMTPSA id r17-20020a056830121100b006c61c098d38sm542105otp.21.2023.11.12.07.59.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Nov 2023 07:59:39 -0800 (PST) Date: Sun, 12 Nov 2023 09:59:28 -0600 Message-ID: <20231112155932.8492-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: 8789314305 X-Migadu-Scanner: mx13.migadu.com X-TUID: H8KfW5ALMtXs * 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