1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

* Added a command ‘nix-store --print-env $drvpath’ that prints out the

environment of the given derivation in a format that can be sourced
  by the shell, e.g.

  $ eval "$(nix-store --print-env $(nix-instantiate /etc/nixos/nixpkgs -A pkg))"
  $ NIX_BUILD_TOP=/tmp
  $ source $stdenv/setup

  This is especially useful to reproduce the environment used to build
  a package outside of its builder for development purposes.

  TODO: add a nix-build option to do the above and fetch the
  dependencies of the derivation as well.
This commit is contained in:
Eelco Dolstra 2012-01-17 23:07:22 +00:00
parent 2a3f4110c5
commit 4e624849b6
2 changed files with 39 additions and 0 deletions

View file

@ -44,6 +44,10 @@
<para>TODO: <command>nix-store --verify-path</command> command.</para>
</listitem>
<listitem>
<para>TODO: <command>nix-store --print-env</command> command.</para>
</listitem>
</itemizedlist>
</section>