[Nix-dev] getConfig vs packageOverrides
Mathijs Kwik
mathijs at bluescreen303.nl
Sun Feb 19 21:29:10 CET 2012
Hi all,
When writing packages with optional dependencies and other config
options, I can choose to get these options through an optional
argument to the function, or to use getConfig to fetch them from
nixpkgs.config.
Setting them by either nixpkgs.config or by using packageOverrides to
set the extra arguments/
Is there a preferred way? Or does it depend on the situation?
Situations thus far:
- optional dependency
- optional configure flags
- optional patches
Thanks,
Mathijs
More information about the nix-dev
mailing list