[Nix-dev] gentoo like nixpkgs globala useflags in nixpkgs config - would it be worth it?

Profpatsch mail at profpatsch.de
Wed Mar 29 13:30:28 CEST 2017


On 17-03-25 11:47pm, Ertugrul Söylemez wrote:
> >> Issue pulseSupport -> does it make sense to have a global 'enable
> >> pulse for all packgages' config.pulseSupport = true flag?
> >>
> >> packages could be using:  config.pulseSupport or false to disable by
> >> default then.
> >
> > In my opinion baking global implicit state into nixpkgs is not a good
> > idea.
> 
> It's not *state*, is it?  We're basically already doing global
> configuration, and I think the proposal is about actually using this to
> get a USE-like system.

Once you have some kind of implicit config file for your user
there is state.

> In other words: please don't turn NixOS into Gentoo by forcing us to
> compile everything. =)

Having hydra compile special versions of your package
is as simple as:

mypkg = callPackage ./my-pkg {}
mypkg-full = callPackage ./my-pkg { someOption = true; };


-- 
Proudly written in Mutt with Vim on NixOS.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
May take up to five days to read your message. If it’s urgent, call me.


More information about the nix-dev mailing list