[Nix-dev] nix&bindist

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


Lluís Batlle i Rossell wrote:

> On Sun, Sep 25, 2011 at 06:34:40PM +0200, 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.
> 
> Hydra distributes all binaries that it builds. Do you mean that hydra
> should build (and report) some derivations, but not distribute them?

I think that hydra should fail to build some derivation while local nix 
installs should build them. Probably this could be achieved by adding more 
meta attributes and tweaking release-lib.nix.
-- 
Yury G. Kudryashov,
mailto: urkud at mccme.ru



More information about the nix-dev mailing list