Add a new way to handle option sets.

svn path=/nixpkgs/trunk/; revision=12505
This commit is contained in:
Nicolas Pierron
2008-08-05 17:16:35 +00:00
parent 7abbe5889f
commit 0e25bb67cf
7 changed files with 270 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
let
pkgs = import ../../top-level/all-packages.nix {};
config = import ./declare.nix;
# Define the handler of unbound options.
noOption = name: values:
builtins.trace "Attribute named '${name}' does not match any option declaration." values;
in
with (pkgs.lib);
finalReferenceOptionSets
(mergeOptionSets noOption)
pkgs
# List of main configurations.
[ config.configB config.configC ]