1 { lib, writeShellScript }: let
3 in (writeShellScript "test-script" ''
4 echo ${lib.escapeShellArg output}
5 '').overrideAttrs (old: {
6 checkPhase = old.checkPhase or "" + ''
7 expected=${lib.escapeShellArg output}
9 if [[ "$got" != "$expected" ]]; then
10 echo "wrong output: expected $expected, got $got"