all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Brian Woodcox <bw@inskydata.com>
To: help-guix@gnu.org
Subject: Having a problem invoking curl only when using guix pull
Date: Tue, 14 May 2019 16:23:07 -0600	[thread overview]
Message-ID: <3483615C-9CB3-4184-B1F4-A4D19542FCA5@inskydata.com> (raw)

Hi,

I’m having problems with a piece of code.

;; Retrieve git commit date
(define get-commit-date (lambda _
  (let* ((out (open-input-pipe (format #f "curl --silent '~a'" %api-url)))
         (str (get-string-all out))
         (queryResults (json-string->scm str))
         (date (cdr (hash-get-handle (cdr (hash-get-handle (cdr (hash-get-handle queryResults "commit")) "author")) "date"))))
         (display "Contacting github for commit date...\n")
         (close-pipe out)
         date)))

This code sits above my package code and I use it to dynamically populate my some values when building my package.

Everything works great and I can install the package locally without any problems.

My issue occurs if I try to issue a guix pull to bring this in through a separate channel.

When I do that I always get /gnu/store/…-bash-minimal-4.4.23/bin/bash: curl: command not found.

Any help would be greatly appreciated.

Thanks.

             reply	other threads:[~2019-05-14 22:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-14 22:23 Brian Woodcox [this message]
2019-05-16  3:13 ` Having a problem invoking curl only when using guix pull ison
2019-05-16 21:49 ` Brian Woodcox
  -- strict thread matches above, loose matches on Subject: below --
2019-05-16 22:53 Brian Woodcox
2019-05-17  0:21 ` John Soo
2019-05-17  0:31   ` Brian Woodcox
2019-05-17  1:04   ` Tobias Geerinckx-Rice

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=3483615C-9CB3-4184-B1F4-A4D19542FCA5@inskydata.com \
    --to=bw@inskydata.com \
    --cc=help-guix@gnu.org \
    /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.