about summary refs log tree commit diff
path: root/tests/run.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run.nix')
-rw-r--r--tests/run.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/run.nix b/tests/run.nix
new file mode 100644
index 000000000000..77dcbd2a9df0
--- /dev/null
+++ b/tests/run.nix
@@ -0,0 +1,17 @@
+with import ./config.nix;
+
+{
+  hello = mkDerivation {
+    name = "hello";
+    buildCommand =
+      ''
+        mkdir -p $out/bin
+        cat > $out/bin/hello <<EOF
+        #! ${shell}
+        who=\$1
+        echo "Hello \''${who:-World} from $out/bin/hello"
+        EOF
+        chmod +x $out/bin/hello
+      '';
+  };
+}