Re: Having a problem invoking curl only when using guix pull

2019-05-16 Thread Tobias Geerinckx-Rice
John, John Soo wrote: Others may correct me if I’m wrong here, but during the build phase, network io is off limits. This is since there is not way to reliably guarantee the contents of things gotten over the network remain unchanged between builds, and so would break the immutability guarant

Re: Having a problem invoking curl only when using guix pull

2019-05-16 Thread Brian Woodcox
> On May 16, 2019, at 6:21 PM, John Soo wrote: > > Hi Brian, > > Others may correct me if I’m wrong here, but during the build phase, network > io is off limits. This is since there is not way to reliably guarantee the > contents of things gotten over the network remain unchanged between bui

Re: Having a problem invoking curl only when using guix pull

2019-05-16 Thread John Soo
Hi Brian, Others may correct me if I’m wrong here, but during the build phase, network io is off limits. This is since there is not way to reliably guarantee the contents of things gotten over the network remain unchanged between builds, and so would break the immutability guarantees of the pac

Re: Having a problem invoking curl only when using guix pull

2019-05-16 Thread Brian Woodcox
> Perhaps all you need is to include the curl package in your package's > native-inputs field. > > Also as a side note, I'm not entirely sure if using open-input-pipe would be > considered good practice for packages as far as reproducibility is concerned. > Perhaps someone else can comment on that

Re: Having a problem invoking curl only when using guix pull

2019-05-16 Thread Brian Woodcox
> > 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)) > (da

Re: Having a problem invoking curl only when using guix pull

2019-05-15 Thread ison
Perhaps all you need is to include the curl package in your package's native-inputs field. Also as a side note, I'm not entirely sure if using open-input-pipe would be considered good practice for packages as far as reproducibility is concerned. Perhaps someone else can comment on that. But anothe

Having a problem invoking curl only when using guix pull

2019-05-14 Thread Brian Woodcox
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-h