git.iko.soy/typeable/nixpkgs
on master help sign in
options.json: Export as an object rather than a list
44d14e2Eelco Dolstra
nixos/doc/manual/default.nix+3−1
@@ -71,7 +71,9 @@ in rec {
71 dst=$out/share/doc/nixos
71 dst=$out/share/doc/nixos
72 mkdir -p $dst
72 mkdir -p $dst
73
73
74− cp ${builtins.toFile "options.json" (builtins.unsafeDiscardStringContext (builtins.toJSON optionsList'))} $dst/options.json
74+ cp ${builtins.toFile "options.json" (builtins.unsafeDiscardStringContext (builtins.toJSON
75+ (listToAttrs (map (o: { name = o.name; value = removeAttrs o ["name"]; }) optionsList'))))
76+ } $dst/options.json
75
77
76 mkdir -p $out/nix-support
78 mkdir -p $out/nix-support
77 echo "file json $dst/options.json" >> $out/nix-support/hydra-build-products
79 echo "file json $dst/options.json" >> $out/nix-support/hydra-build-products