stockholm/krebs/5pkgs/simple/kpaste/default.nix

8 lines
247 B
Nix
Raw Normal View History

2019-04-13 19:41:58 +00:00
{ curl, gnused, writeDashBin }:
2017-04-11 19:41:06 +00:00
writeDashBin "kpaste" ''
2023-05-03 10:28:46 +00:00
${curl}/bin/curl -sS http://p.r --data-binary @"''${1:--}" \
2023-05-04 23:32:18 +00:00
-H "Content-Type-Override: ''${KPASTE_CONTENT_TYPE-}" |
${gnused}/bin/sed '$ {p;s|http://p.r|https://p.krebsco.de|}'
2017-04-11 19:41:06 +00:00
''