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

13 lines
248 B
Nix
Raw Normal View History

2019-04-13 20:01:13 +00:00
{ bepasty-client-cli, gnused, writeDashBin }:
2015-11-05 15:13:10 +00:00
2016-06-13 00:04:22 +00:00
writeDashBin "krebspaste" ''
2019-04-13 20:01:13 +00:00
${bepasty-client-cli}/bin/bepasty-cli -L 1m --url http://paste.r "$@" |
${gnused}/bin/sed '
$ {
s/$/\/+inline/
p
s/\<r\>/krebsco.de/
}
'
2015-11-05 15:13:10 +00:00
''