Message ID | 87o6xp571l.fsf@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BEEC127BBEA; Tue, 25 Mar 2025 19:41:28 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2112827BBE2 for <patchwork@mira.cbaines.net>; Tue, 25 Mar 2025 19:41:27 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1txA96-00064N-DD; Tue, 25 Mar 2025 15:41:08 -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 <Debian-debbugs@debbugs.gnu.org>) id 1tx9ZD-0002CW-BV for guix-patches@gnu.org; Tue, 25 Mar 2025 15:04:03 -0400 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 <Debian-debbugs@debbugs.gnu.org>) id 1tx9ZC-0004FI-Rh for guix-patches@gnu.org; Tue, 25 Mar 2025 15:04:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=rAZq7BoFchmskllKhzbdsUSu7LE8qvJiu/Dp+HZYQ3g=; b=lrrwNeoEyTBR0n0F/VKgUjwlk8WL5jCL5xePt2D8LiBAZCGMFqypBrDa8iwgkd1wDxY06MHW7I58EB6i1DgNh4LizWwdaNMgEkaIo3iWPdhlayI+J0oBAvjDVjVn6baaXSGE5aV/ko9wPfTVAjphmepu8eSXYy36WAOii+SSx8A0HD3kW53fc5zY80AO3fIQKY6h/gOPb0Feb/9tCw8469jfOY2plk8AmjpZ5l4s8g1P8wQOuj8wys/jd7cR78kb2fq7lv9XSjpSGfwNX4nJ8mxgZyCbIe2oUa4mfq572uhV+zvh/S6PNeS4HgnmX8qWRsEd5LYd+CWcUeEPLTul7g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tx9ZC-0004U3-G6 for guix-patches@gnu.org; Tue, 25 Mar 2025 15:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77258] [PATCH] New package: emacs-boxy Resent-From: Amy Grinn <grinn.amy@gmail.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 25 Mar 2025 19:04:02 +0000 Resent-Message-ID: <handler.77258.B.174292940817166@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 77258 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77258@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.174292940817166 (code B ref -1); Tue, 25 Mar 2025 19:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Mar 2025 19:03:28 +0000 Received: from localhost ([127.0.0.1]:40028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1tx9Yd-0004Sm-9G for submit@debbugs.gnu.org; Tue, 25 Mar 2025 15:03:28 -0400 Received: from lists.gnu.org ([2001:470:142::17]:50176) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <grinn.amy@gmail.com>) id 1tx8V8-00018A-VG for submit@debbugs.gnu.org; Tue, 25 Mar 2025 13:55:47 -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 <grinn.amy@gmail.com>) id 1tx8V3-0006Lf-6p for guix-patches@gnu.org; Tue, 25 Mar 2025 13:55:41 -0400 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <grinn.amy@gmail.com>) id 1tx8V1-0004HX-Cr for guix-patches@gnu.org; Tue, 25 Mar 2025 13:55:40 -0400 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-ac2ab99e16eso1175203066b.0 for <guix-patches@gnu.org>; Tue, 25 Mar 2025 10:55:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742925336; x=1743530136; darn=gnu.org; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=rAZq7BoFchmskllKhzbdsUSu7LE8qvJiu/Dp+HZYQ3g=; b=a/dWDC6enIQoF2q9GU8TC/umX9kfTkDCS3ySth0Sq5pkqJiTz70esDWRGtN5QoCyUm 0GB94Wciq4eC/5elw8tQf+WCyU0Oy02fQqO3Q5qrXqTp6NcLLKX+n8dvjag5Y/JQRY+8 s9GF/XzvRcTk3j0F3tP5QKARwcO3xKRPix16SckWUvYG5rHVDSfX6XKov7ckERJUoeGd 6UuigPT/sylraZURAo6+IRA9VKnr8fv5XodZpzFs86o3E7xhpo3fhglO6eTG2wXQvyyk Tr4z5WaZ3yYwcBf/DFGw9sH2CZX4d5FZ2Guy4+hEswkveXk7H9bj6VA73jkIEH2nLFQj wZsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742925336; x=1743530136; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rAZq7BoFchmskllKhzbdsUSu7LE8qvJiu/Dp+HZYQ3g=; b=u9mz33EHOk1SOY5OXM+NM3ioQAms/kIlRxQHpRIWjxS12dDLmToT834XUdfJkJ7lVK 3fbqX3JmTKutEj94tbiTDUQNB6MFBrIZy3EiDr1rimgl6XOPcBdv+ssL7YjwWltm10O8 Vv4KTI8z9ND5yGQDah+0M21Tg0UYiAja0qbEKaj/je1cIOWjZZL5Fjlm1rUQbz/k1ttJ oJjaAMFTfQThp6mPKESLXCUtACOgns5ygN/vvGR146P/jWuQEaynQcGtSaIVOymT35ba xK2J5XtrveidipN5EH0oGBe14WAzz8C+t1CAlg361NTC5YgsX0cgn/EJetIHs+x+Hjp5 g0EA== X-Gm-Message-State: AOJu0YxwTGBteDAZXAzq7hgUvZ/VAshGoLEm3ef+Dkphp6hIlu4lgdKs HKMhTt/Jypd0IKLqGZPmoRvnr8Z1hU3aDxMNMclMUzvdQxKjAEC6FjfMSrby X-Gm-Gg: ASbGnctZRyFwiXCrE2UWHQY0FN/PrrQvVrSxbfEC/9YK6lTD3Fa4tGxwjQ3KBygau/s J+wCyeMJ8hdKIdQV4IuuslyADLOBzeL4Tk4qcIQKm+1RMXqTC5fCU6p1R3yPP5ufgK7V9hxi9fG aDVD2MCzTwY5BiwZGfsCBkzBfNFMRJiplhFkru5YppZtb5HelDf1SrFyQsfqtE7ZRMlfe55mNUv 9XMFOSvYh/TqvzPCh637KES/Eg4WI2srocQmKxlhWoFJo6oRbaPGbX2PVSG+1Tz8M5FG/CYvkgl mvUWJW4i8eT8YOPEgGyG2OY7mGQGU7HBcQxNr3Oeug== X-Google-Smtp-Source: AGHT+IFKcZoFEJ5GeH/DCBdcVpmyuFVWZv/xScSrS8cJa41WPEWDlVkx8aUyqM2G66XOpmdHGI+xKQ== X-Received: by 2002:a17:906:478d:b0:ac3:b12c:b1f2 with SMTP id a640c23a62f3a-ac3f251ac58mr1572756466b.35.1742925335699; Tue, 25 Mar 2025 10:55:35 -0700 (PDT) Received: from pop-os ([2a02:8109:b537:d300:3f01:12ff:3d56:6835]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ac3ef8e5152sm886098966b.47.2025.03.25.10.55.34 for <guix-patches@gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Mar 2025 10:55:35 -0700 (PDT) From: Amy Grinn <grinn.amy@gmail.com> Date: Tue, 25 Mar 2025 18:55:34 +0100 Message-ID: <87o6xp571l.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=grinn.amy@gmail.com; helo=mail-ej1-x62e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 25 Mar 2025 15:03:24 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Tue, 25 Mar 2025 15:41:07 -0400 X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#77258] New package: emacs-boxy
|
|
Commit Message
Amy Grinn
March 25, 2025, 5:55 p.m. UTC
Hello, I would like to add my package, emacs-boxy, to Guix. This is my first patch to Guix so let me know if I did anything wrong!
Comments
Hi Amy, Amy Grinn <grinn.amy@gmail.com> writes: > Hello, > > I would like to add my package, emacs-boxy, to Guix. > > This is my first patch to Guix so let me know if I did anything > wrong! Thank you for contributing to Guix! Please see (guix)Contributing[1] for info about sending patches. The Guix tooling expects patches to be submitted with `git send-email', and not mailed as an attachment. Other comments below. >>From b3223cec32425d6b8cf2c11545ed63ad6dabae88 Mon Sep 17 >>00:00:00 2001 > From: Amy Grinn <grinn.amy@tuta.com> > Date: Tue, 25 Mar 2025 18:17:25 +0100 > Subject: [PATCH] gnu: Add emacs-boxy > > * gnu/packages/emacs-xyz.scm (emacs-boxy): New variable. > --- > gnu/packages/emacs-xyz.scm | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/gnu/packages/emacs-xyz.scm > b/gnu/packages/emacs-xyz.scm > index f00c5e4b29..0423858b2f 100644 > --- a/gnu/packages/emacs-xyz.scm > +++ b/gnu/packages/emacs-xyz.scm > @@ -39025,6 +39025,21 @@ (define-public emacs-boxquote > example code.") > (license license:gpl3+))) > > +(define-public emacs-boxy > + (package > + (name "emacs-boxy") > + (version "2.0.0") > + (source (origin > + (method url-fetch) > + (uri (string-append > "https://elpa.gnu.org/packages/boxy-" > + version ".tar")) Please prefer the upstream Git repo over M/ELPA. > + (sha256 (base64 > "6w1QtINpWz9voCrc/ne6q8sPj4UcA3s8E/f/Pebjz+0=")))) > + (build-system emacs-build-system) > + (home-page "https://gitlab.com/grinn.amy/boxy") > + (synopsis "A boxy layout framework") > + (description "Boxy provides an interface to create a 3D > representation of boxes.") "Boxy" should probably reference the package name (@code{emacs-boxy}), "This package," or similar. It would also be nice to have a bit more info about what the package is used for. I also noticed a couple issues with the package itself which ought to be corrected: - Your `defcustom' and `defface' forms don’t have `:group boxy', so won’t appear if you `M-x customize-group RET boxy RET'. - Several macros from `cl-macs' are used, but `cl-macs' isn’t required. ex. `cl-defstruct', `cl-flet*', possibly others. `cl-lib' might also require `cl-macs', but you should always require your direct dependencies instead of relying on transitive ones. - You may want to condsider using symbols or keywords for `boxy-relationships' instead of strings. Thanks, -- Ian [1]: https://guix.gnu.org/manual/devel/en/html_node/Sending-a-Patch-Series.html#Single-Patches-1
Hi Amy, The latest version of your patch looks good overall. Thanks for expanding the description and adding a copyright line. As you mentioned, many packages in emacs-xyz.scm use tarballs from ELPA so given the instability of the upstream repo due to hosting migrations I think using an ELPA URL is just fine here. FWIW, patches as attachments are no problem for me. Whether inline or attachment, doing code review by email is just as frustrating. ;) Also, I think the comments from Ian about the code in the project itself are irrelevant to the discussion of this patch, which should be scoped to just the package recipe. I modified the hash to use the conventional base32 format and pushed to master. Congrats on your first Guix patch! - Dave
> Hi Amy, > > The latest version of your patch looks good overall. Thanks for > expanding the description and adding a copyright line. As you > mentioned, many packages in emacs-xyz.scm use tarballs from ELPA so > given the instability of the upstream repo due to hosting migrations I > think using an ELPA URL is just fine here. > > FWIW, patches as attachments are no problem for me. Whether inline or > attachment, doing code review by email is just as frustrating. ;) > > Also, I think the comments from Ian about the code in the project > itself are irrelevant to the discussion of this patch, which should be > scoped to just the package recipe. > > I modified the hash to use the conventional base32 format and pushed to master. > > Congrats on your first Guix patch! > > - Dave Thank you so much Dave, I appreciate it! I agree with everything you said and I think both the ELPA src url and patches-as-attachments will make it easier for me to contribute in the future. I also agree that issues in the source project should be addressed outside of the guix-patches mailing list. If anyone has an issue using the boxy library please use the forge's issue tracker (currently gitlab) instead of Guix'. That way, Emacs users who don't use Guix will be able to join the discussion.
From b3223cec32425d6b8cf2c11545ed63ad6dabae88 Mon Sep 17 00:00:00 2001 From: Amy Grinn <grinn.amy@tuta.com> Date: Tue, 25 Mar 2025 18:17:25 +0100 Subject: [PATCH] gnu: Add emacs-boxy * gnu/packages/emacs-xyz.scm (emacs-boxy): New variable. --- gnu/packages/emacs-xyz.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index f00c5e4b29..0423858b2f 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -39025,6 +39025,21 @@ (define-public emacs-boxquote example code.") (license license:gpl3+))) +(define-public emacs-boxy + (package + (name "emacs-boxy") + (version "2.0.0") + (source (origin + (method url-fetch) + (uri (string-append "https://elpa.gnu.org/packages/boxy-" + version ".tar")) + (sha256 (base64 "6w1QtINpWz9voCrc/ne6q8sPj4UcA3s8E/f/Pebjz+0=")))) + (build-system emacs-build-system) + (home-page "https://gitlab.com/grinn.amy/boxy") + (synopsis "A boxy layout framework") + (description "Boxy provides an interface to create a 3D representation of boxes.") + (license license:gpl3+))) + (define-public emacs-buffer-env (package (name "emacs-buffer-env") -- 2.49.0