about summary refs log tree commit diff
path: root/third_party/nix/tests/secure-drv-outputs.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/tests/secure-drv-outputs.nix')
-rw-r--r--third_party/nix/tests/secure-drv-outputs.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/third_party/nix/tests/secure-drv-outputs.nix b/third_party/nix/tests/secure-drv-outputs.nix
new file mode 100644
index 000000000000..b4ac8ff531f8
--- /dev/null
+++ b/third_party/nix/tests/secure-drv-outputs.nix
@@ -0,0 +1,23 @@
+with import ./config.nix;
+
+{
+
+  good = mkDerivation {
+    name = "good";
+    builder = builtins.toFile "builder"
+      ''
+        mkdir $out
+        echo > $out/good
+      '';
+  };
+
+  bad = mkDerivation {
+    name = "good";
+    builder = builtins.toFile "builder"
+      ''
+        mkdir $out
+        echo > $out/bad
+      '';
+  };
+
+}