unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrew Tropin via Guix-patches via <guix-patches@gnu.org>
To: 70917@debbugs.gnu.org, 70917-done@debbugs.gnu.org
Cc: ngraves@ngraves.fr
Subject: [bug#70917] [PATCH] gnu: Add emacs-helm-org-ql.
Date: Tue, 14 May 2024 14:08:28 +0300	[thread overview]
Message-ID: <87fruky7kj.fsf@trop.in> (raw)
In-Reply-To: <20240513104938.13078-1-ngraves@ngraves.fr>

[-- Attachment #1: Type: text/plain, Size: 3318 bytes --]

On 2024-05-13 12:49, Nicolas Graves via Guix-patches via wrote:

> * gnu/packages/emacs-xyz.scm (emacs-helm-org-ql): New variable.
> (emacs-org-ql)[phases]: Add phase 'remove-helm-org-ql.
> [propagated-inputs]: Remove emacs-helm, emacs-helm-org.
>
> The author didn't mean to make the package depend on helm :
> "Note that Helm is not declared as a package dependency, so this does
> not cause Helm to be installed.", but the way we packaged it in Guix
> did. Split the extension into a separate dependency instead, this
> avoids 3 Mo to be propagated in a profile where it's not meant.
>
> Change-Id: I3537c0b08cfffac3d66b761173761a3806497358
> ---
>  gnu/packages/emacs-xyz.scm | 36 +++++++++++++++++++++++++++++++++---
>  1 file changed, 33 insertions(+), 3 deletions(-)
>
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index 9e3bd5ae647..861402f9f52 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -23860,15 +23860,18 @@ (define-public emacs-org-ql
>      (arguments
>       (list
>        #:tests? #f                       ;FIXME: check phase freezes
> -      #:test-command #~(list "buttercup" "-L" ".")))
> +      #:test-command #~(list "buttercup" "-L" ".")
> +      #:phases
> +      #~(modify-phases %standard-phases
> +          (add-after 'unpack 'remove-helm-org-ql
> +            (lambda _
> +              (delete-file "helm-org-ql.el"))))))
>      (native-inputs
>       (list emacs-buttercup emacs-with-simulated-input emacs-xr))
>      (propagated-inputs
>       (list emacs-compat
>             emacs-dash
>             emacs-f
> -           emacs-helm
> -           emacs-helm-org
>             emacs-org
>             emacs-org-super-agenda
>             emacs-ov
> @@ -23881,6 +23884,33 @@ (define-public emacs-org-ql
>  files, allowing for actions to be performed based on search criteria.")
>      (license license:gpl3+)))
>  
> +(define-public emacs-helm-org-ql
> +  (package/inherit emacs-org-ql

Changed package/inherit macro to (package (inherit emacs-org-ql).

> +    (name "emacs-helm-org-ql")
> +    (arguments
> +     (list
> +      #:tests? #f                       ;no tests
> +      #:phases
> +      #~(modify-phases %standard-phases
> +          (add-after 'unpack 'remove-emacs-org-ql
> +            (lambda _
> +              (install-file "helm-org-ql.el" "..")
> +              (let ((cwd (getcwd)))
> +                (with-directory-excursion ".."
> +                  (delete-file-recursively cwd)
> +                  (mkdir cwd)
> +                  (install-file "helm-org-ql.el" cwd))))))))
> +    (propagated-inputs
> +     (list emacs-dash
> +           emacs-helm
> +           emacs-helm-org
> +           emacs-org-ql
> +           emacs-s))
> +    (synopsis "Helm commands for @code{emacs-org-ql}")
> +    (description "This package provides @code{emacs-helm} commands for
> +@{emacs-org-ql}, a Lispy query language for Org files, allowing for actions to
> +be performed based on search criteria.")))
> +
>  (define-public emacs-bing-dict
>    (package
>      (name "emacs-bing-dict")

Applied, pushed as
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=a682ddd708, thank
you!

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

      reply	other threads:[~2024-05-14 11:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-13 10:49 [bug#70917] [PATCH] gnu: Add emacs-helm-org-ql Nicolas Graves via Guix-patches via
2024-05-14 11:08 ` Andrew Tropin via Guix-patches via [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fruky7kj.fsf@trop.in \
    --to=guix-patches@gnu.org \
    --cc=70917-done@debbugs.gnu.org \
    --cc=70917@debbugs.gnu.org \
    --cc=andrew@trop.in \
    --cc=ngraves@ngraves.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).