Nikita Karetnikov skribis:
>(system* "tar" "xvf" tarball)
The ‘PATH’ environment variable is empty. So this should be:
(let ((tar (string-append (assoc-ref %build-inputs "tar")
"/bin/tar")))
(zero? (system* tar "xvf" tarball)))
And tar needs
How can I unpack the tarball? The following returns "In execvp of tar:
No such file or directory."
(arguments `(#:modules ...
#:builder
(begin
...
(let* ((tarball (assoc-ref %build-inputs "tarb
Nikita Karetnikov skribis:
(let* ((gh (assoc-ref %build-inputs "source"))
>>>
>>> What is the associated value here? I assume it should be 'gh.pl'.
>
>> Yes. Actually, “source” is the name of the input that corresponds to
>> the ‘source’ field of the package. So, if your package does
>>>(let* ((gh (assoc-ref %build-inputs "source"))
>>
>> What is the associated value here? I assume it should be 'gh.pl'.
> Yes. Actually, “source” is the name of the input that corresponds to
> the ‘source’ field of the package. So, if your package does
> (package
> (source (origi
Nikita Karetnikov skribis:
>>(let* ((gh (assoc-ref %build-inputs "source"))
>
> What is the associated value here? I assume it should be 'gh.pl'.
Yes. Actually, “source” is the name of the input that corresponds to
the ‘source’ field of the package. So, if your package does
(package
> I think this is a good use case for ‘trivial-build-system’.
Yes, I forgot about it.
>(let* ((gh (assoc-ref %build-inputs "source"))
What is the associated value here? I assume it should be 'gh.pl'.
I've tried to specify (inputs `(("source" ,source))), but it's just a
tarball. So I'd h
Hello!
Nikita Karetnikov skribis:
> The game is just a single Perl file.
I think this is a good use case for ‘trivial-build-system’.
Basically, with ‘trivial-build-system’, you just pass a Scheme
expression that produces the result. In your case that would be along
the lines of:
(begin
On 05/14/2013 09:36 PM, Nikita Karetnikov wrote:
I'm trying to package Grue Hunter [1].
The game is just a single Perl file. What directories should be created
in the store? And how can I create such directories?
I think you want to use mkdir/mkdir-p and copy-file. See the attached
recipe
I'm trying to package Grue Hunter [1].
The game is just a single Perl file. What directories should be created
in the store? And how can I create such directories?
I've tried several things:
1. (zero? (system (format #f "cp -r . ~a" out)))
Pollutes the profile with 'AGPLv3.txt', 'gh.pl', a