Print the env via stderr
This commit is contained in:
parent
ebd947c544
commit
e3623b05fd
@ -7,16 +7,16 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "argv";
|
name = "envRecord";
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
phases = [ "installPhase" ];
|
phases = [ "installPhase" ];
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
cat > $out <<EOF
|
cat > $out <<EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
echo ----- ENV BEGIN -------
|
>&2 echo ----- ENV BEGIN -------
|
||||||
/usr/bin/env
|
>&2 /usr/bin/env
|
||||||
echo ----- ENV END -------
|
>&2 echo ----- ENV END -------
|
||||||
|
|
||||||
exec ${program} \''${argv[@]}
|
exec ${program} \''${argv[@]}
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user