mirror of
https://github.com/NixOS/nix
synced 2025-06-28 09:31:16 +02:00
nix shell: Test that store paths cannot link outside of the store
(cherry picked from commit 26a4688a86
)
This commit is contained in:
parent
c8905a8747
commit
b1044d52ce
2 changed files with 11 additions and 0 deletions
|
@ -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" ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue