aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/shell-hello.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/shell-hello.nix')
-rw-r--r--tests/functional/shell-hello.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/functional/shell-hello.nix b/tests/functional/shell-hello.nix
index 3fdd3501d..dfe66ef93 100644
--- a/tests/functional/shell-hello.nix
+++ b/tests/functional/shell-hello.nix
@@ -23,4 +23,20 @@ with import ./config.nix;
chmod +x $dev/bin/hello2
'';
};
+
+ salve-mundi = mkDerivation {
+ name = "salve-mundi";
+ outputs = [ "out" ];
+ meta.outputsToInstall = [ "out" ];
+ buildCommand =
+ ''
+ mkdir -p $out/bin
+
+ cat > $out/bin/hello <<EOF
+ #! ${shell}
+ echo "Salve Mundi from $out/bin/hello"
+ EOF
+ chmod +x $out/bin/hello
+ '';
+ };
}