[Nix-dev] nix&bindist

Yury G. Kudryashov urkud.urkud at gmail.com
Sun Sep 25 19:39:24 CEST 2011


Nicolas Pierron wrote:

> On Sat, Sep 24, 2011 at 22:36, Yury G.  Kudryashov
> <urkud.urkud at gmail.com> wrote:
>> Gentoo has 'bindist' use flag to mark whether the binary packages will be
>> distributed in binary form. What about introducing some variable (say,
>> nixpkgs.config.isBuildfarm) to mark that the result of the build is
>> available to download? Then packages can assert !isBuildfarm;
>>
>> In the ideal world we should have some license manager that automatically
>> calculates the license of each package but it does not seem trivial to
>> implement...
> 
> This can be a property of the license expression such as
> "lib.licenses.proprietary.distribute", which is better localized than
> the "meta.isBuildfarm".  Thus we don't have to care about license
> violation if we can ensure that licenses are correctly set and that
> each license is well define.
Yes, this is better. There is one problem: currently lib.licenses.gpl2Plus 
is a string, not an attrset.
-- 
Yury G. Kudryashov,
mailto: urkud at mccme.ru



More information about the nix-dev mailing list