lix/src/nix
Eelco Dolstra e8d6ee7c1b
Add "nix show-derivation"
This debug command prints a store derivation in JSON format. For
example:

  $ nix show-derivation nixpkgs.hello
  {
    "/nix/store/ayjwpwwiyy04nh9z71rsdgd3q7bra7ch-hello-2.10.drv": {
      "outputs": {
        "out": {
          "path": "/nix/store/w5w4v29ql0qwqhczkdxs94ix2lh7ibgs-hello-2.10"
        }
      },
      "inputSrcs": [
        "/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh"
      ],
      "inputDrvs": {
        "/nix/store/13839aqdf6x4k3b785rw5f2l7857l6y3-bash-4.4-p12.drv": [
          "out"
        ],
        "/nix/store/vgdx7fdc7d4iirmnwj2py1nrvr5qwzj7-hello-2.10.tar.gz.drv": [
          "out"
        ],
        "/nix/store/x3kkd0vsqfflbvwf1055l9mr39bg0ms0-stdenv.drv": [
          "out"
        ]
      },
      "platform": "x86_64-linux",
      "builder": "/nix/store/qp5fw57d38bd1n07ss4zxh88zg67c3vg-bash-4.4-p12/bin/bash",
      "args": [
        "-e",
        "/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh"
      ],
      "env": {
        "buildInputs": "",
        "builder": "/nix/store/qp5fw57d38bd1n07ss4zxh88zg67c3vg-bash-4.4-p12/bin/bash",
        "configureFlags": "",
        "doCheck": "1",
        "name": "hello-2.10",
        "nativeBuildInputs": "",
        "out": "/nix/store/w5w4v29ql0qwqhczkdxs94ix2lh7ibgs-hello-2.10",
        "propagatedBuildInputs": "",
        "propagatedNativeBuildInputs": "",
        "src": "/nix/store/3x7dwzq014bblazs7kq20p9hyzz0qh8g-hello-2.10.tar.gz",
        "stdenv": "/nix/store/6zngq1rdh0ans9qyckqimqibgnlvlfrm-stdenv",
        "system": "x86_64-linux"
      }
    }
  }

This removes the need for pp-aterm.
2017-09-25 13:43:35 +02:00
..
add-to-store.cc Add "nix add-to-store" command 2017-09-14 13:29:33 +02:00
build.cc Add "nix add-to-store" command 2017-09-14 13:29: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 Add "nix show-derivation" 2017-09-25 13:43:35 +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 Add "nix show-derivation" 2017-09-25 13:43:35 +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
show-derivation.cc Add "nix show-derivation" 2017-09-25 13:43:35 +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 Add "nix add-to-store" command 2017-09-14 13:29:33 +02:00