From 68b5306c562c30df5ede227b451eadbf92c5c311 Mon Sep 17 00:00:00 2001 From: Kane York Date: Tue, 4 Aug 2020 19:12:49 -0700 Subject: feat(3p/nix): add --trace-file-access to nix-instantiate This builds on edef's work with depot-scan by adding a dedicated flag to the command. We piggyback on upstream's restricted-mode implementation, the checkSourcePath function. Change-Id: I52bb613549f40dbca1e8caa036635910c1a3d6d0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1654 Tested-by: BuildkiteCI Reviewed-by: glittershark --- third_party/nix/doc/manual/command-ref/nix-instantiate.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'third_party/nix/doc') diff --git a/third_party/nix/doc/manual/command-ref/nix-instantiate.xml b/third_party/nix/doc/manual/command-ref/nix-instantiate.xml index 53f06aed1241..3fd2ef2a9507 100644 --- a/third_party/nix/doc/manual/command-ref/nix-instantiate.xml +++ b/third_party/nix/doc/manual/command-ref/nix-instantiate.xml @@ -39,6 +39,7 @@ path + @@ -131,6 +132,13 @@ input. + + While instantiating the expression, the evaluator will + print the full path to any files it reads with the prefix + trace-file-access: to the standard error. + + + When used with , print the resulting @@ -253,6 +261,10 @@ $ nix-instantiate --eval --xml --strict -E 'rec { x = "foo"; y = x; }' +Conformance + The option is a nonstandard + extension added by Tvix in 2020. + Environment variables -- cgit 1.4.1