summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/kpaste/default.nix
blob: 1c0225af7b888da585c130eb567cc5e3ec97d606 (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|}'
''