summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/krebspaste/default.nix
blob: d97b6a053a350651aad4417c5868fd174169aaeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{ bepasty-client-cli, gnused, writeDashBin }:

writeDashBin "krebspaste" ''
  ${bepasty-client-cli}/bin/bepasty-cli -L 1m --url http://paste.r "$@" |
  ${gnused}/bin/sed '
    $ {
      s/$/\/+inline/
      p
      s/\<r\>/krebsco.de/
    }
  '
''