Re: [Nix-dev] A generic wrapper method (possibly)

2013-12-08 Thread Bjørn Forsman
Hi Alex, On 2 December 2013 09:43, Alex Berg chex...@gmail.com wrote: I am interested in this topic. I don't completely understand the problem here, but maybe I can help by discussing it. The motivation for the addition of runtimeInputs is primarily to support language interpreters and their

Re: [Nix-dev] A generic wrapper method (possibly)

2013-12-08 Thread Bjørn Forsman
Hi Eelco, On 2 December 2013 15:23, Eelco Dolstra eelco.dols...@logicblox.com wrote: Hi, On 30/11/13 16:12, Bjørn Forsman wrote: I envision the end result to be something like this: stdenv.mkDerivation { name = foo-0.1; ... buildInputs = [ python pythonPackages.jedi ];

Re: [Nix-dev] A generic wrapper method (possibly)

2013-12-05 Thread Shea Levy
FWIW, bash's 'exec' takes a flag (-a) to specify argv[0] as well. On 12/02/2013 05:03 PM, Jason O'Conal wrote: Excerpts from David Guibert's message of 2013-12-02 13:23:49 +: On Mon, Dec 2, 2013 at 11:17 AM, Sergey Mironov grr...@gmail.com wrote: Hi! Plus one from here. I also notice

Re: [Nix-dev] A generic wrapper method (possibly)

2013-12-02 Thread Alex Berg
I am interested in this topic. I don't completely understand the problem here, but maybe I can help by discussing it. The motivation for the addition of runtimeInputs is primarily to support language interpreters and their libraries? I really don't like to use wrapper, this term. I feel that

Re: [Nix-dev] A generic wrapper method (possibly)

2013-12-02 Thread Sergey Mironov
Hi! Plus one from here. I also notice '.myapp-wrappers' while alt-tab-switching tasks and it is not good for the endusers. A note about binary programs. May we say that applying a wrapper breaks only applications with interpreters (like python, shell, perl) and does not affects binary

Re: [Nix-dev] A generic wrapper method (possibly)

2013-12-02 Thread David Guibert
Hi, On Mon, Dec 2, 2013 at 11:17 AM, Sergey Mironov grr...@gmail.com wrote: Hi! Plus one from here. I also notice '.myapp-wrappers' while alt-tab-switching tasks and it is not good for the endusers. argv0 [1] allows to run a program with a specified 0th argument. [1]

Re: [Nix-dev] A generic wrapper method (possibly)

2013-12-02 Thread Eelco Dolstra
Hi, On 30/11/13 16:12, Bjørn Forsman wrote: I envision the end result to be something like this: stdenv.mkDerivation { name = foo-0.1; ... buildInputs = [ python pythonPackages.jedi ]; runtimeInputs = [ python pythonPackages.jedi ]; ... } (The use of python above is

Re: [Nix-dev] A generic wrapper method (possibly)

2013-12-02 Thread Jason O'Conal
Excerpts from David Guibert's message of 2013-12-02 13:23:49 +: On Mon, Dec 2, 2013 at 11:17 AM, Sergey Mironov grr...@gmail.com wrote: Hi! Plus one from here. I also notice '.myapp-wrappers' while alt-tab-switching tasks and it is not good for the endusers. argv0 [1] allows to run a

Re: [Nix-dev] A generic wrapper method (possibly)

2013-12-02 Thread phreedom
On Monday, December 02, 2013 09:23:30 AM Eelco Dolstra wrote: An alternative that I've been thinking about is to make wrapProgram smarter by giving it interpreter-specific backends. For instance, if the program to be wrapped is a shell script, we don't need to generate a wrapper: we can just

[Nix-dev] A generic wrapper method (possibly)

2013-11-30 Thread Bjørn Forsman
Hi all, For a long time I've been annoyed by the side effects of wrapping programs. Now I want to fix it. Wrapping programs makes the help text (very often) ugly: usage: .prog-wrapped some-option instead of usage: prog some-option. Whenever I see such help texts I cannot help but think that our