all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#70869] [PATCH] gnu: Add emacs-casual-dired.
@ 2024-05-11  0:05 Wilko Meyer
  2024-05-30 21:35 ` Nicolas Graves via Guix-patches via
  2024-06-06 19:22 ` [bug#70869] [PATCH v2] " Wilko Meyer
  0 siblings, 2 replies; 4+ messages in thread
From: Wilko Meyer @ 2024-05-11  0:05 UTC (permalink / raw)
  To: 70869
  Cc: Wilko Meyer, Andrew Tropin, Katherine Cox-Buday,
	Liliana Marie Prikler

* gnu/packages/emacs-xyz.scm (emacs-casual-dired): New variable.

Change-Id: Idd6a0e49b740c72dabe2e069cc4fc67f4909b7e9
---
 gnu/packages/emacs-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 310c4e1587..54b2132251 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -138,6 +138,7 @@
 ;;; Copyright © 2023 Ian Eure <ian@retrospec.tv>
 ;;; Copyright © 2024 Suhail Singh <suhail@bayesians.ca>
 ;;; Copyright © 2024 dan <i@dan.games>
+;;; Copyright © 2024 Wilko Meyer <w@wmeyer.eu>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -32693,6 +32694,31 @@ (define-public emacs-cascading-dir-locals
 all of your projects, then override or add variables on a per-project basis.")
       (license license:gpl3+))))
 
+(define-public emacs-casual-dired
+  (package
+    (name "emacs-casual-dired")
+    (version "20240509.108")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/kickingvegas/casual-dired.git")
+             (commit "9f65992e362c65a3023e4e2bc4853df9e92fa2d4")))
+       (sha256
+        (base32 "19h5m0nwhvbcfr5xsndin4hgqsqpj4jvdbpx8g4iyv79jdx7jvcf"))))
+    (build-system emacs-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'chdir
+            (lambda _ (chdir "lisp"))))))
+    (home-page "https://github.com/kickingvegas/casual-dired")
+    (synopsis "Transient-based porcelain for dired")
+    (description
+     "Casual Dired is an opinionated Transient-based porcelain for Emacs Dired.")
+    (license license:gpl3)))
+
 (define-public emacs-calibredb
   (package
     (name "emacs-calibredb")

base-commit: da9f509b0300f1b6b979c68a52d8669f9bcb89a7
prerequisite-patch-id: 486a565e86a4b3205f40f0b708108271ee9274c3
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#70869] [PATCH] gnu: Add emacs-casual-dired.
  2024-05-11  0:05 [bug#70869] [PATCH] gnu: Add emacs-casual-dired Wilko Meyer
@ 2024-05-30 21:35 ` Nicolas Graves via Guix-patches via
  2024-06-06 19:22 ` [bug#70869] [PATCH v2] " Wilko Meyer
  1 sibling, 0 replies; 4+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2024-05-30 21:35 UTC (permalink / raw)
  To: Wilko Meyer, 70869
  Cc: Wilko Meyer, Katherine Cox-Buday, Liliana Marie Prikler,
	Andrew Tropin

Hi Wilko,

guix lint complains about two warnings :

> gnu/packages/emacs-xyz.scm:32831:5: emacs-casual-dired@20240509.108: the
> source file name should contain the package name

Here you have to add
       (file-name (git-file-name name version))
after the uri field for it to stop complaining.

> gnu/packages/emacs-xyz.scm:32831:5: emacs-casual-dired@20240509.108:
> permanent redirect from https://github.com/kickingvegas/casual-dired.git
> to https://github.com/kickingvegas/casual-dired

Here you can remove the .git suffix at the end of the url.

Moreover, there are releases on the github page available as tags, we
should probably rely on these rather than the melpa version you
provided, unless we have good reasons to do otherwise.

Can you make these changes and resend a patch? Thanks!

-- 
Best regards,
Nicolas Graves




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#70869] [PATCH v2] gnu: Add emacs-casual-dired.
  2024-05-11  0:05 [bug#70869] [PATCH] gnu: Add emacs-casual-dired Wilko Meyer
  2024-05-30 21:35 ` Nicolas Graves via Guix-patches via
@ 2024-06-06 19:22 ` Wilko Meyer
  2024-06-13 20:48   ` bug#70869: " Ludovic Courtès
  1 sibling, 1 reply; 4+ messages in thread
From: Wilko Meyer @ 2024-06-06 19:22 UTC (permalink / raw)
  To: 70869; +Cc: Wilko Meyer

* gnu/packages/emacs-xyz.scm (emacs-casual-dired): New variable.

Change-Id: I5208b1699baa94a610d27d2d04d5f54015d9905d
---
Hi Nicolas,

Thanks for reviewing my patch and the suggestions on how to improve
the package quality!

I've added the file-name to the package definition, removed the .git
suffix from the packages URL and changed the versioning to using tags
instead of the melpa version. As guix lint doesn't complain and the
package still successfully builds locally, I hope that everything's
alright now.

Cheers!

 gnu/packages/emacs-xyz.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index bef0afc99f..a3e54d6ca8 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -139,6 +139,7 @@
 ;;; Copyright © 2024 Suhail Singh <suhail@bayesians.ca>
 ;;; Copyright © 2024 dan <i@dan.games>
 ;;; Copyright © 2024 Ilya Chernyshov <ichernyshovvv@gmail.com>
+;;; Copyright © 2024 Wilko Meyer <w@wmeyer.eu>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -32843,6 +32844,32 @@ (define-public emacs-cascading-dir-locals
 all of your projects, then override or add variables on a per-project basis.")
       (license license:gpl3+))))
 
+(define-public emacs-casual-dired
+  (package
+    (name "emacs-casual-dired")
+    (version "1.2.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/kickingvegas/casual-dired")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "07dn2nfjvg348qy7kfn1kywclw9g71x8j85ilwz26pp9hv64qhmc"))))
+    (build-system emacs-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'chdir
+            (lambda _ (chdir "lisp"))))))
+    (home-page "https://github.com/kickingvegas/casual-dired")
+    (synopsis "Transient-based porcelain for dired")
+    (description
+     "Casual Dired is an opinionated Transient-based porcelain for Emacs Dired.")
+    (license license:gpl3)))
+
 (define-public emacs-calibredb
   (package
     (name "emacs-calibredb")
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#70869: [PATCH v2] gnu: Add emacs-casual-dired.
  2024-06-06 19:22 ` [bug#70869] [PATCH v2] " Wilko Meyer
@ 2024-06-13 20:48   ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2024-06-13 20:48 UTC (permalink / raw)
  To: Wilko Meyer; +Cc: 70869-done, Nicolas Graves

Hi,

Wilko Meyer <w@wmeyer.eu> skribis:

> * gnu/packages/emacs-xyz.scm (emacs-casual-dired): New variable.
>
> Change-Id: I5208b1699baa94a610d27d2d04d5f54015d9905d

[...]

> +    (license license:gpl3)))

I changed this to ‘license:gpl3+’ because the code explicitly says “or
any later version”.

Thank you, and thanks Nicolas for reviewing!

Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-13 20:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-11  0:05 [bug#70869] [PATCH] gnu: Add emacs-casual-dired Wilko Meyer
2024-05-30 21:35 ` Nicolas Graves via Guix-patches via
2024-06-06 19:22 ` [bug#70869] [PATCH v2] " Wilko Meyer
2024-06-13 20:48   ` bug#70869: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.