forked from lix-project/lix
19 lines
319 B
Bash
19 lines
319 B
Bash
|
source ../common.sh
|
||
|
|
||
|
clearStore
|
||
|
|
||
|
evil=$(cat <<-'EOF'
|
||
|
builtins.derivation {
|
||
|
name = "evil-kbity";
|
||
|
system = "x86_64-darwin";
|
||
|
builder = "/bin/sh";
|
||
|
args = [ "-c" "> $out" ];
|
||
|
__structuredAttrs = true;
|
||
|
env.oops = "lol %s";
|
||
|
}
|
||
|
EOF
|
||
|
)
|
||
|
|
||
|
# This should not crash
|
||
|
nix-shell --expr "$evil" --run 'echo yay' | grepQuiet yay
|