Lluís Batlle i Rossell wrote:

> On Fri, Jan 20, 2012 at 06:00:36PM +0400, Yury G.  Kudryashov wrote:
>> Eelco Dolstra wrote:
>> >>> +    mkdir -pv $out/bin
>> >>> +    cp -v "$@" $out/bin
>> > 
>> > This actually made me wonder why we have an "installBin" function in
>> > stdenv.  It doesn't appear to be used anywhere in Nixpkgs...
>> Then we can remove this function.
> 
> It may be useful in writing short mkDerivations for those who have scripts
> in nix expressions, instead of ~/bin or so.
> 
> I didn't know it, though.
On Linux (have no time to check portability) you can use
$ install -m 755 -D $source $out/bin/$name
And installBin expands to two lines of code anyway.
-- 
Yury G. Kudryashov,
mailto: [email protected]

_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to