From 4e624849b686894f8a4c23a56098f4d47634a85c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 17 Jan 2012 23:07:22 +0000 Subject: =?UTF-8?q?*=20Added=20a=20command=20=E2=80=98nix-store=20--print-?= =?UTF-8?q?env=20$drvpath=E2=80=99=20that=20prints=20out=20the=20=20=20env?= =?UTF-8?q?ironment=20of=20the=20given=20derivation=20in=20a=20format=20th?= =?UTF-8?q?at=20can=20be=20sourced=20=20=20by=20the=20shell,=20e.g.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit $ 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. --- doc/manual/release-notes.xml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/manual/release-notes.xml') diff --git a/doc/manual/release-notes.xml b/doc/manual/release-notes.xml index 3712a8b91..7ef25401b 100644 --- a/doc/manual/release-notes.xml +++ b/doc/manual/release-notes.xml @@ -44,6 +44,10 @@ TODO: nix-store --verify-path command. + + TODO: nix-store --print-env command. + + -- cgit v1.2.3