summary refs log tree commit diff
path: root/pkgs/tools/nix/info/sandbox.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/nix/info/sandbox.nix')
-rw-r--r--pkgs/tools/nix/info/sandbox.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/tools/nix/info/sandbox.nix b/pkgs/tools/nix/info/sandbox.nix
new file mode 100644
index 00000000000..fa4288c2f94
--- /dev/null
+++ b/pkgs/tools/nix/info/sandbox.nix
@@ -0,0 +1,10 @@
+let
+  pkgs = import <nixpkgs> {};
+in pkgs.runCommand "diagnostics-sandbox"
+  { }
+  ''
+    set -x
+    # no cache: ${toString builtins.currentTime}
+    test -d "$(dirname "$out")/../var/nix"
+    touch $out
+  ''