8 lines
247 B
Nix
8 lines
247 B
Nix
{ curl, gnused, writeDashBin }:
|
|
|
|
writeDashBin "kpaste" ''
|
|
${curl}/bin/curl -sS http://p.r --data-binary @"''${1:--}" \
|
|
-H "Content-Type-Override: ''${KPASTE_CONTENT_TYPE-}" |
|
|
${gnused}/bin/sed '$ {p;s|http://p.r|https://p.krebsco.de|}'
|
|
''
|