options.json: Filter out "visible" and "internal" attributes

This commit is contained in:
Eelco Dolstra 2014-11-17 13:58:23 +01:00
parent 44d14e2264
commit b89c06722f

View File

@ -72,7 +72,7 @@ in rec {
mkdir -p $dst
cp ${builtins.toFile "options.json" (builtins.unsafeDiscardStringContext (builtins.toJSON
(listToAttrs (map (o: { name = o.name; value = removeAttrs o ["name"]; }) optionsList'))))
(listToAttrs (map (o: { name = o.name; value = removeAttrs o ["name" "visible" "internal"]; }) optionsList'))))
} $dst/options.json
mkdir -p $out/nix-support