all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#46148] [PATCH 0/1] gnu: pinentry-rofi: Update to 2.0.2.
@ 2021-01-28  1:56 Fredrik Salomonsson
  2021-01-28  2:02 ` [bug#46148] [PATCH 1/1] " Fredrik Salomonsson
  0 siblings, 1 reply; 3+ messages in thread
From: Fredrik Salomonsson @ 2021-01-28  1:56 UTC (permalink / raw)
  To: 46148; +Cc: Fredrik Salomonsson

Update pinentry-rofi to 2.0.2 and incorporate the feedback from [0], namely:

> Since I think you’re also upstream :-), how about adding something like
> that at the top of the installed executable:
>
>   (eval-when (load expand eval)
>     (set! %load-path (cons "@moddir@" %load-path))
>     (set! %laod-compiled-path (cons "@godir@" %load-compiled-path)))>> ?

[0] https://issues.guix.gnu.org/45190

Fredrik Salomonsson (1):
  gnu: pinentry-rofi: Update to 2.0.2.

 gnu/packages/gnupg.scm | 39 ++++++++-------------------------------
 1 file changed, 8 insertions(+), 31 deletions(-)

-- 
2.30.0





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

* [bug#46148] [PATCH 1/1] gnu: pinentry-rofi: Update to 2.0.2.
  2021-01-28  1:56 [bug#46148] [PATCH 0/1] gnu: pinentry-rofi: Update to 2.0.2 Fredrik Salomonsson
@ 2021-01-28  2:02 ` Fredrik Salomonsson
  2021-01-28 13:22   ` bug#46148: " Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Fredrik Salomonsson @ 2021-01-28  2:02 UTC (permalink / raw)
  To: 46148; +Cc: Fredrik Salomonsson

* gnu/packages/gnupg.scm (pinentry-rofi): Update to 2.0.2.
* gnu/packages/gnupg.scm (pinentry-rofi): Simplify the package definition.
---
 gnu/packages/gnupg.scm | 39 ++++++++-------------------------------
 1 file changed, 8 insertions(+), 31 deletions(-)

diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index 6e80ca339f..9be8a32540 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -894,7 +894,7 @@ passphrase when @code{gpg} is run and needs it.")))
 (define-public pinentry-rofi
   (package
     (name "pinentry-rofi")
-    (version "2.0.1")
+    (version "2.0.2")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -902,7 +902,7 @@ passphrase when @code{gpg} is run and needs it.")))
                     (commit version)))
               (file-name (git-file-name name version))
               (sha256
-               (base32 "044bnldz7k74s873jwsjgff176l1jsvpbaka7d1wcj8b5pwqv2av"))))
+               (base32 "14rbz32ykc8pz7gglbvxm3pcgabr7xdnddar6k24icd5xk9mr4rp"))))
     (build-system gnu-build-system)
     (arguments
      `(#:modules
@@ -914,38 +914,15 @@ passphrase when @code{gpg} is run and needs it.")))
            %standard-phases
          (add-after 'install 'hall-wrap-binaries
            (lambda* (#:key inputs outputs #:allow-other-keys)
-             (let* ((compiled-dir
-                     (lambda (out version)
-                       (string-append out "/lib/guile/" version "/site-ccache")))
-                    (uncompiled-dir
-                     (lambda (out version)
-                       (string-append
-                        out
-                        "/share/guile/site"
-                        (if (string-null? version) "" "/")
-                        version)))
-                    (dep-path
-                     (lambda (env path)
-                       (list env ":" 'prefix (list path))))
-                    (out (assoc-ref outputs "out"))
+             (let* ((out (assoc-ref outputs "out"))
                     (bin (string-append out "/bin/"))
-                    (site (uncompiled-dir out "")))
+                    (site (string-append out "/share/guile/site"))
+                    (rofi-bin (string-append (assoc-ref inputs "rofi") "/bin")))
                (match (scandir site)
                  (("." ".." version)
-                  (for-each
-                   (lambda (file)
-                     (wrap-program
-                         (string-append bin file)
-                       (dep-path
-                        "PATH"
-                        (string-append (assoc-ref inputs "rofi") "/bin"))
-                       (dep-path
-                        "GUILE_LOAD_PATH"
-                        (uncompiled-dir out version))
-                       (dep-path
-                        "GUILE_LOAD_COMPILED_PATH"
-                        (compiled-dir out version))))
-                   ,''("pinentry-rofi"))
+                  (wrap-program
+                      (string-append bin "pinentry-rofi")
+                    (list "PATH" ":" 'prefix `(,rofi-bin)))
                   #t))))))))
     (native-inputs
      `(("autoconf" ,autoconf)
-- 
2.30.0





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

* bug#46148: [PATCH 1/1] gnu: pinentry-rofi: Update to 2.0.2.
  2021-01-28  2:02 ` [bug#46148] [PATCH 1/1] " Fredrik Salomonsson
@ 2021-01-28 13:22   ` Nicolas Goaziou
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2021-01-28 13:22 UTC (permalink / raw)
  To: Fredrik Salomonsson; +Cc: 46148-done

Hello,

Fredrik Salomonsson <plattfot@posteo.net> writes:

> * gnu/packages/gnupg.scm (pinentry-rofi): Update to 2.0.2.
> * gnu/packages/gnupg.scm (pinentry-rofi): Simplify the package
> definition.

Applied, with a slight change to commit message.

Thank you.

Regards,
-- 
Nicolas Goaziou




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

end of thread, other threads:[~2021-01-28 13:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-28  1:56 [bug#46148] [PATCH 0/1] gnu: pinentry-rofi: Update to 2.0.2 Fredrik Salomonsson
2021-01-28  2:02 ` [bug#46148] [PATCH 1/1] " Fredrik Salomonsson
2021-01-28 13:22   ` bug#46148: " Nicolas Goaziou

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.