all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: jgart <jgart@dismail.de>
Cc: Guix Help <help-guix@gnu.org>
Subject: Re: perl can't find more utils
Date: Tue, 28 Jun 2022 11:29:53 +0300	[thread overview]
Message-ID: <Yrq8AdwBTz1vtLgO@3900XT> (raw)
In-Reply-To: <20220622232354.GD7572@gac>


[-- Attachment #1.1: Type: text/plain, Size: 590 bytes --]

On Wed, Jun 22, 2022 at 11:23:54PM -0500, jgart wrote:
> On Wed, 22 Jun 2022 10:22:32 +0300 Efraim Flashner <efraim@flashner.co.il> wrote:
> 
> > Have you tried adding perl-list-moreutils to the package definition?
> 
> Hi Efraim,
> 
> Yes, I tried also and it still fails to find it.
> 
> wdyt

Looks like you forgot to wrap the executable. Try the attached diff.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #1.2: guitar-scale-chart.diff --]
[-- Type: text/plain, Size: 1603 bytes --]

diff --git a/guixrus/packages/misc.scm b/guixrus/packages/misc.scm
index d6cbba9..9269830 100644
--- a/guixrus/packages/misc.scm
+++ b/guixrus/packages/misc.scm
@@ -52,6 +52,7 @@
   #:use-module (gnu packages gnupg)
   #:use-module (gnu packages groff)
   #:use-module (gnu packages gtk)
+  #:use-module (gnu packages guile)
   #:use-module (gnu packages haskell-xyz)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages mercury)
@@ -1306,9 +1307,22 @@ mouse hovers a specific date.  Else, it shows the event for the current week.")
                  (base32
                   "1ms34r7h78mv8v8z9n5dhwnlz61ckgjby962kv0mz40vhb47yv3h"))))
       (build-system perl-build-system)
-      (propagated-inputs
-        (list perl-list-allutils ; fails to find moreutils
-              perl-term-ansicolor))
+      (arguments
+       (list
+         #:phases
+         #~(modify-phases %standard-phases
+             (add-after 'install 'wrap-program
+               (lambda* (#:key outputs #:allow-other-keys)
+                 (let* ((out   (assoc-ref outputs "out"))
+                        (bin   (string-append out "/bin"))
+                        (path  (getenv "PERL5LIB")))
+                   (wrap-script (string-append bin "/guitar-scale-chart")
+                    `("PERL5LIB" ":" prefix (,path)))))))))
+      (inputs
+       (list perl-list-allutils
+             perl-term-ansicolor))
+      (native-inputs
+       (list guile-3.0))
       (home-page "https://github.com/jgarte/guitar-scale-chart/")
       (synopsis "Pretty guitar scales in your terminal")
       (description

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

      reply	other threads:[~2022-06-28  9:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-22  3:30 perl can't find more utils jgart
2022-06-22  7:22 ` Efraim Flashner
2022-06-23  4:23   ` jgart
2022-06-28  8:29     ` Efraim Flashner [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

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

  git send-email \
    --in-reply-to=Yrq8AdwBTz1vtLgO@3900XT \
    --to=efraim@flashner.co.il \
    --cc=help-guix@gnu.org \
    --cc=jgart@dismail.de \
    /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 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.