9 lines
200 B
Nix
9 lines
200 B
Nix
{
|
|
writeShellScriptBin,
|
|
curl
|
|
}: writeShellScriptBin "puppeteer-run" ''
|
|
set -e
|
|
|
|
exec ${curl}/bin/curl --fail-with-body -X POST -d "$@" --unix-socket "/tmp/puppeteer.sock" http://puppeteer-socket
|
|
''
|