lix/src/nix
Eelco Dolstra 57b9505731
nix search: Add a cache
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-07-26 17:29:10 +02:00
..
build.cc StorePathsCommand: Don't build installables 2017-07-14 18:29:07 +02:00
cat.cc Revert "Get rid of unicode quotes (#1140)" 2016-11-26 00:38:01 +01:00
command.cc StorePathsCommand: Don't build installables 2017-07-14 18:29:07 +02:00
command.hh Add "nix search" command 2017-07-20 13:33:13 +02:00
copy.cc nix copy: Make -r option use the "from" store 2017-03-16 14:25:54 +01:00
dump-path.cc nix dump-path: Add 2017-05-04 14:21:22 +02:00
edit.cc Add "nix edit" command 2017-05-08 18:42:30 +02:00
eval.cc nix eval: Add a --raw flag 2017-05-03 14:08:18 +02:00
hash.cc Support base-64 hashes 2017-07-04 15:07:41 +02:00
installables.cc nix search: Ignore top-level eval errors 2017-07-20 13:33:13 +02:00
legacy.cc Start of new Nix command-line interface 2016-02-09 21:28:29 +01:00
legacy.hh Fix Darwin build 2016-03-15 12:11:27 +01:00
local.mk Replace readline by linenoise 2017-05-10 18:37:42 +02:00
log.cc Avoid a call to derivationFromPath() 2017-07-14 18:29:10 +02:00
ls.cc nix ls: support '/' for the root directory 2017-05-15 10:25:55 +02:00
main.cc nix: Show help when no arguments are given 2017-07-14 13:44:45 +02:00
path-info.cc nix path-info: Show download sizes for binary cache stores 2017-07-14 18:29:10 +02:00
progress-bar.cc Fix build failure on Debian/Ubuntu 2017-05-29 15:59:18 +02:00
progress-bar.hh Improved logging abstraction 2016-04-25 19:18:45 +02:00
repl.cc nix-shell: Use bashInteractive from <nixpkgs> 2017-07-20 13:50:25 +02:00
run.cc StorePathsCommand: Don't build installables 2017-07-14 18:29:07 +02:00
search.cc nix search: Add a cache 2017-07-26 17:29:10 +02:00
show-config.cc Move code around 2017-04-25 12:07:31 +02:00
sigs.cc Don't show flags from config settings in "nix --help" 2017-06-07 18:41:20 +02:00
verify.cc Support base-64 hashes 2017-07-04 15:07:41 +02:00