about summary refs log tree commit diff
path: root/src/libutil/json.hh
AgeCommit message (Collapse)AuthorFilesLines
2017-07-26 nix search: Add a cacheEelco Dolstra1-3/+11
The package list is now cached in ~/.cache/nix/package-search.json. This gives a substantial speedup to "nix search" queries. For example (on an SSD): First run: (no package search cache, cold page cache) $ time nix search blender Attribute name: nixpkgs.blender Package name: blender Version: 2.78c Description: 3D Creation/Animation/Publishing System real 0m6.516s Second run: (package search cache populated) $ time nix search blender Attribute name: nixpkgs.blender Package name: blender Version: 2.78c Description: 3D Creation/Animation/Publishing System real 0m0.143s
2017-04-20 Improve nix show-config --jsonEelco Dolstra1-8/+3
In particular, show descriptions. This could be used for manpage generation etc.
2016-10-06 toJSON(): Support some more typesEelco Dolstra1-0/+2
2016-08-30 Fix 32-bit buildEelco Dolstra1-0/+1
2016-08-29 nix path-info: Add --json flagEelco Dolstra1-0/+183
Also, factor out JSON generation from value-to-json.{cc,hh}, and support producing indented JSON.