[Nix-dev] Making stdenv/setup.sh more verbose
Yury G. Kudryashov
urkud.urkud at gmail.com
Fri Jan 20 15:15:30 CET 2012
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: urkud at mccme.ru
More information about the nix-dev
mailing list