Re: Toward 0.2

2013-05-11 Thread Ludovic Courtès
Hello! I’ve been doing some polishing (and adding a few packages), but I think I’ll tag the new version tomorrow (Sunday 12th). Ludo’.

Re: Toward 0.2

2013-04-29 Thread Ludovic Courtès
We’re getting there! I propose releasing sometime between May 7th and May 12th. There’s room for improvement to the manual and website, please share your ideas and patches! Ludo’.

Re: Toward 0.2

2013-04-15 Thread Ludovic Courtès
l...@gnu.org (Ludovic Courtès) skribis: > I think we should plan for 0.2 within a month or so. Here are the > important features I’d like to see in: > > • ‘guix pull’ (see TODO; I’ve started working on that); > > • a simple “binary substituter”, which would allow pre-built binaries > to b

[PATCH] utils: Add 'wrap-program'. (was: Toward 0.2)

2013-03-03 Thread Nikita Karetnikov
> I wouldn’t bother, though, because it will be used in contexts where > there’s no risk of ‘prog’ being used while we’re fiddling with it > (single-threaded, after ‘make install’). Better safe than sorry. So I added '.PROG-tmp'. > Can you just expound the docstring before pushing? Is it OK? C

Re: Toward 0.2

2013-03-02 Thread Ludovic Courtès
Nikita Karetnikov skribis: > Is there a way to compose the following part somehow to prevent a > possible race condition? > > (rename-file prog prog-real) > > (with-output-to-file prog (lambda () > (format #t > "#!~a~

Re: Toward 0.2

2013-03-02 Thread Nikita Karetnikov
What about this patch? Is there a way to compose the following part somehow to prevent a possible race condition? (rename-file prog prog-real) (with-output-to-file prog (lambda () (format #t "#!~a~%~a~%exec ~a~%"

Re: Toward 0.2

2013-03-01 Thread Ludovic Courtès
Nikita Karetnikov skribis: >> It’s not needed. All that needed is the name of the executable file >> to wrap. > > I don't understand. How will 'rename-file' get the location of the > executable? For example: > > (wrap-program "wget" [...]) > > I guess that it will only work if you invoke 'wrap

Re: Toward 0.2

2013-03-01 Thread Nikita Karetnikov
> It’s not needed. All that needed is the name of the executable file > to wrap. I don't understand. How will 'rename-file' get the location of the executable? For example: (wrap-program "wget" [...]) I guess that it will only work if you invoke 'wrap-program' from the same directory. > For

Re: Toward 0.2

2013-03-01 Thread Ludovic Courtès
Nikita Karetnikov skribis: >> Remember that (guix build ...) modules must not use Guix modules other >> than (guix build ...). This is a convention to distinguish between code >> for the “builder stratum”, and code for the “host stratum”. > > OK. But how can I get the location of a package? Th

Re: Toward 0.2

2013-02-28 Thread Nikita Karetnikov
> Remember that (guix build ...) modules must not use Guix modules other > than (guix build ...). This is a convention to distinguish between code > for the “builder stratum”, and code for the “host stratum”. OK. But how can I get the location of a package? The needed procedure (i.e., 'package-

Re: Toward 0.2

2013-02-26 Thread Ludovic Courtès
Nikita Karetnikov skribis: > ice-9/boot-9.scm:106:20: In procedure # ice-9/boot-9.scm:97:6 (thrown-k . args)>: > ice-9/boot-9.scm:106:20: In procedure module-lookup: Unbound variable: memoize As Mark noted, that’s because of a circular dependency. > (define-module (wrap-program) > #:use-modul

Re: Toward 0.2

2013-02-26 Thread Mark H Weaver
Nikita Karetnikov writes: > I'm attaching a patch. > > It's a separate file; if I add these lines > >#:use-module (guix packages) >#:use-module (guix store) > > to 'guix/build/utils.scm', they will raise the following error on > 'make'. Based on the backtrace below, it looks like you tri

Re: Toward 0.2

2013-02-26 Thread Nikita Karetnikov
I'm attaching a patch. It's a separate file; if I add these lines #:use-module (guix packages) #:use-module (guix store) to 'guix/build/utils.scm', they will raise the following error on 'make'. Backtrace: In ice-9/eval.scm: 400: 19 [eval # ()] In ice-9/boot-9.scm: 2681: 18 [define-modul

Re: Toward 0.2

2013-02-22 Thread Ludovic Courtès
Nikita Karetnikov skribis: >> With the recently-added ‘package-output’ (singular): > >> scheme@(guile-user)> (package-output s binutils "out") >> $2 = "/nix/store/bfh5c2a4is27jdmc811fp6g0jfac7fiw-binutils-2.22" >> scheme@(guile-user)> (package-output s binutils "lib") >> $3 = "/nix/store/n29brzql

Re: Toward 0.2

2013-02-21 Thread Nikita Karetnikov
> With the recently-added ‘package-output’ (singular): > scheme@(guile-user)> (package-output s binutils "out") > $2 = "/nix/store/bfh5c2a4is27jdmc811fp6g0jfac7fiw-binutils-2.22" > scheme@(guile-user)> (package-output s binutils "lib") > $3 = "/nix/store/n29brzqlhjkzww51labk9anx493gl4d3-binutils-2

Re: Toward 0.2

2013-02-20 Thread Ludovic Courtès
Nikita Karetnikov skribis: >> wrapProgram $out/bin/guile-snarf --prefix PATH : "${gawk}/bin" > > How can I get the output of a package? With the recently-added ‘package-output’ (singular): --8<---cut here---start->8--- scheme@(guile-user)> (package-output s

Re: Toward 0.2

2013-02-20 Thread Andreas Enge
Am Sonntag, 17. Februar 2013 schrieb Ludovic Courtès: > • Xorg & co. packaged (Andreas? :-)); Ok, I will have a look during the weekend. Andreas

Re: Toward 0.2

2013-02-19 Thread Nikita Karetnikov
> wrapProgram $out/bin/guile-snarf --prefix PATH : "${gawk}/bin" How can I get the output of a package? There is 'package-outputs': scheme@(guile-user)> ,use (gnu packages wget) (guix packages) scheme@(guile-user)> (package-outputs wget) $1 = ("out") But how can I get the value (like in '#:pha

Re: Toward 0.2

2013-02-18 Thread Ludovic Courtès
Nikita Karetnikov skribis: > I guess that I can implement this one: > > ** Add equivalent to Nixpkgs's ‘wrapProgram’ > > What's the purpose of 'wrapProgram'? Could you elaborate? Here’s an example from the Guile expression in Nixpkgs: wrapProgram $out/bin/guile-snarf --prefix PATH : "${gawk}

Re: Toward 0.2

2013-02-17 Thread Nikita Karetnikov
I guess that I can implement this one: ** Add equivalent to Nixpkgs's ‘wrapProgram’ What's the purpose of 'wrapProgram'? Could you elaborate? pgpPSf2Ka2i9D.pgp Description: PGP signature

Toward 0.2

2013-02-17 Thread Ludovic Courtès
Hi! I think we should plan for 0.2 within a month or so. Here are the important features I’d like to see in: • ‘guix pull’ (see TODO; I’ve started working on that); • a simple “binary substituter”, which would allow pre-built binaries to be transparently downloaded from trusted source,