1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-13 17:10:47 +02:00

nix shell: Test that store paths cannot link outside of the store

This commit is contained in:
Eelco Dolstra 2024-04-11 09:04:26 +02:00
parent 9d50f57fa3
commit 26a4688a86
2 changed files with 11 additions and 0 deletions

View file

@ -32,6 +32,14 @@ rec {
'';
};
forbidden-symlink = mkDerivation {
name = "forbidden-symlink";
buildCommand =
''
ln -s /tmp/foo/bar $out
'';
};
salve-mundi = mkDerivation {
name = "salve-mundi";
outputs = [ "out" ];