lix/src/nix
Eelco Dolstra fc0ded3408
nix why-depends: Add option to show all edges causing a dependency
For example, without --all:

  $ nix why-depends nixpkgs.nixUnstable nixpkgs.libssh2
  /nix/store/s9n5gvj2l49b4n19nz6xl832654nf7n7-nix-1.12pre5511_c94f3d55
  └───lib/libnixstore.so: …/lib:/nix/store/w9ykqpl5v0r3vfwsgn408jqhs72cx96x-curl-7.55.0/lib…
      => /nix/store/w9ykqpl5v0r3vfwsgn408jqhs72cx96x-curl-7.55.0
      └───lib/libcurl.la: …ib -L/nix/store/4mbayl1y5hpjbjzkx8ndyhkv98kqw1wi-libssh2-1.8.0/l…
          => /nix/store/4mbayl1y5hpjbjzkx8ndyhkv98kqw1wi-libssh2-1.8.0

but with --all:

  $ nix why-depends -a nixpkgs.nixUnstable nixpkgs.libssh2
  /nix/store/s9n5gvj2l49b4n19nz6xl832654nf7n7-nix-1.12pre5511_c94f3d55
  ├───lib/libnixstore.so: …/lib:/nix/store/w9ykqpl5v0r3vfwsgn408jqhs72cx96x-curl-7.55.0/lib…
  │   => /nix/store/w9ykqpl5v0r3vfwsgn408jqhs72cx96x-curl-7.55.0
  │   └───lib/libcurl.la: …ib -L/nix/store/4mbayl1y5hpjbjzkx8ndyhkv98kqw1wi-libssh2-1.8.0/l…
  │       lib/libcurl.so.4.4.0: …/lib:/nix/store/4mbayl1y5hpjbjzkx8ndyhkv98kqw1wi-libssh2-1.8.0/l…
  │       => /nix/store/4mbayl1y5hpjbjzkx8ndyhkv98kqw1wi-libssh2-1.8.0
  └───lib/libnixstore.so: …/lib:/nix/store/bx2i9vi76lps6w9rr73fxf6my31s4dg5-aws-sdk-cpp-1.0…
      => /nix/store/bx2i9vi76lps6w9rr73fxf6my31s4dg5-aws-sdk-cpp-1.0.153
      └───lib/libaws-cpp-sdk-core.so: …e.so./nix/store/w9ykqpl5v0r3vfwsgn408jqhs72cx96x-curl-7.55.0/lib…
          lib/libaws-cpp-sdk-s3.so: …/lib:/nix/store/w9ykqpl5v0r3vfwsgn408jqhs72cx96x-curl-7.55.0/lib…
          => /nix/store/w9ykqpl5v0r3vfwsgn408jqhs72cx96x-curl-7.55.0
2017-09-11 16:21:27 +02:00
..
build.cc nix build: Only download the requested derivation outputs 2017-09-10 22:40:33 +02:00
cat.cc Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
command.cc nix build: Only download the requested derivation outputs 2017-09-10 22:40:33 +02:00
command.hh nix build: Only download the requested derivation outputs 2017-09-10 22:40:33 +02:00
copy.cc nix copy: Add --substitute flag 2017-09-08 15:32:07 +02:00
dump-path.cc nix dump-path: Add 2017-05-04 14:21:22 +02:00
edit.cc nix edit / log: Operate on a single Installable 2017-08-29 16:18:00 +02:00
eval.cc nix eval: Add examples 2017-09-07 20:37:46 +02:00
hash.cc Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
installables.cc nix build: Only download the requested derivation outputs 2017-09-10 22:40:33 +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 nix log: Add examples 2017-09-07 20:18:29 +02:00
ls.cc Typo 2017-09-10 22:40:33 +02:00
main.cc nix edit / log: Operate on a single Installable 2017-08-29 16:18:00 +02:00
optimise-store.cc nix optimise-store: Add 2017-08-16 20:56:03 +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 Add an activity for binary cache queries 2017-08-31 15:25:58 +02:00
progress-bar.hh nix run: Flush the progress bar before starting the command 2017-08-29 15:13:30 +02:00
repl.cc nix repl: Support printing floating-point numbers 2017-08-09 15:17:29 +02:00
run.cc nix build: Only download the requested derivation outputs 2017-09-10 22:40:33 +02:00
search.cc nix search: Add examples 2017-09-07 20:42:11 +02:00
show-config.cc Move code around 2017-04-25 12:07:31 +02:00
sigs.cc Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
verify.cc Give activities a verbosity level again 2017-08-28 19:13:24 +02:00
why-depends.cc nix why-depends: Add option to show all edges causing a dependency 2017-09-11 16:21:27 +02:00