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

7 lines
187 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" ''
${curl}/bin/curl -sS http://p.r --data-binary @"''${1:--}" |
${gnused}/bin/sed '$ {p;s|http://p.r|https://p.krebsco.de|}'
2017-04-11 19:41:06 +00:00
''