summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/kpaste/default.nix
blob: de2de472145084b34f7f365d068f44c7aa950d73 (plain)
1
2
3
4
5
6
7
{ 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|}'
''