[Nix-dev] Re: ${out}

2010-04-11 Thread Yury G. Kudryashov
Yury G. Kudryashov wrote: Hi! Currently if I write configureParams=--some-param=\${out}/subpath, it results in ./configure '--some-param=${out}/subpath' call. Sometimes it leads to unexpanded ${out} strings in the binary. What do you think about expanding ${out} (or @out@) in all

Re: [Nix-dev] Re: ${out}

2010-04-11 Thread Marc Weber
Hi Yury! derivation { a = ${b}; b = ${a}; } what should be the result? So I'd limit this to replacing $out only. Marc Weber ___ nix-dev mailing list nix-dev@cs.uu.nl https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] Re: ${out}

2010-04-11 Thread Jeff Johnson
On Apr 11, 2010, at 9:40 AM, Marc Weber wrote: Hi Yury! derivation { a = ${b}; b = ${a}; } what should be the result? The result should be infinite recursion and an interpreter hang with a naive implementation, or an error message and FULLSTOP (or better, an exception) during

[Nix-dev] Re: Re: ${out}

2010-04-11 Thread Yury G. Kudryashov
Jeff Johnson wrote: So I'd limit this to replacing $out only. The problem of infinite recursion can/will reappear no matter value ${out} has, as its intrinsic to lazy evaluation. Sorry, I should've write the proposal in more details in the first message. I know that nix language cannot replace

Re: [Nix-dev] Re: Re: ${out}

2010-04-11 Thread Marc Weber
derivation { configureFlags=--with-plugins=\${out}/lib/plugins; } personally I think using \${out} is not intuitive. I'd prefer using \ for escaping and using ${out} to insert values which is done everywhere (bash, ruby, PHP, ...) I know that I've tried using this several times. I've learned to

Re: [Nix-dev] Re: Re: ${out}

2010-04-11 Thread Jeff Johnson
On Apr 11, 2010, at 11:49 AM, Yury G. Kudryashov wrote: Jeff Johnson wrote: So I'd limit this to replacing $out only. The problem of infinite recursion can/will reappear no matter value ${out} has, as its intrinsic to lazy evaluation. Sorry, I should've write the proposal in more details in

Re: [Nix-dev] Nix GUI

2010-04-11 Thread Anders F Björklund
Marc Weber wrote: I made a proof-of-concept implementation of a --gui that would use graphic interface rather than console. What features does this gui provide? Somewhere inbetween none and a nice start and end. :-) Basically it was just to see what could be done from Perl. (I've mostly used

[Nix-dev] Re: ${out}

2010-04-11 Thread Ludovic Courtès
Hi, Nicolas Pierron nicolas.b.pier...@gmail.com writes: $out does not work in configureFlags, due to some tricks inside the generic builder, I would prefer to fix the generic builder instead of adding a special case. +1 Ludo’. ___ nix-dev mailing

Re: [Nix-dev] Nix GUI

2010-04-11 Thread Tony White
On 11 April 2010 21:37, Anders F Björklund a...@algonet.se wrote: Marc Weber wrote: I made a proof-of-concept implementation of a --gui that would use graphic interface rather than console. What features does this gui provide? Somewhere inbetween none and a nice start and end. :-)