[Nix-dev] nix&bindist

Lluís Batlle i Rossell viriketo at gmail.com
Tue Sep 27 11:16:49 CEST 2011


On Sun, Sep 25, 2011 at 09:43:25PM +0400, Yury G.  Kudryashov wrote:
> 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.

If you accept hydra not even building, then this is as easy as removing the
'meta.platforms' for the package, and removing it from release.nix.


More information about the nix-dev mailing list