Re: Grue Hunter: Can't create directories in the store

2013-05-24 Thread Ludovic Courtès
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

Re: Grue Hunter: Can't create directories in the store

2013-05-24 Thread Nikita Karetnikov
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

Re: Grue Hunter: Can't create directories in the store

2013-05-24 Thread Ludovic Courtès
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

Re: Grue Hunter: Can't create directories in the store

2013-05-24 Thread Nikita Karetnikov
>>>(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

Re: Grue Hunter: Can't create directories in the store

2013-05-16 Thread Ludovic Courtès
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

Re: Grue Hunter: Can't create directories in the store

2013-05-15 Thread Nikita Karetnikov
> 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

Re: Grue Hunter: Can't create directories in the store

2013-05-15 Thread Ludovic Courtès
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

Re: Grue Hunter: Can't create directories in the store

2013-05-14 Thread Cyril Roelandt
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

Grue Hunter: Can't create directories in the store

2013-05-14 Thread Nikita Karetnikov
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