about summary refs log tree commit diff
path: root/third_party/bazel/rules_nixpkgs/tests/output.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/bazel/rules_nixpkgs/tests/output.nix')
-rw-r--r--third_party/bazel/rules_nixpkgs/tests/output.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/bazel/rules_nixpkgs/tests/output.nix b/third_party/bazel/rules_nixpkgs/tests/output.nix
new file mode 100644
index 000000000000..a0269adb6679
--- /dev/null
+++ b/third_party/bazel/rules_nixpkgs/tests/output.nix
@@ -0,0 +1,13 @@
+with import <nixpkgs> {};
+
+runCommand "some-output" {
+  preferLocalBuild = true;
+  allowSubstitutes = false;
+} ''
+  mkdir -p $out/{bin,include/mylib}
+  touch $out/hi-i-exist
+  touch $out/hi-i-exist-too
+  touch $out/bin/im-a-binary
+  touch $out/include/mylib/im-a-header.h
+  touch $out/include/mylib/im-also-a-header.h
+''