stockholm/krebs/5pkgs/simple/krebspaste/default.nix
2019-04-13 22:01:13 +02:00

13 lines
248 B
Nix

{ 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/
}
'
''