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

13 lines
248 B
Nix
Raw Normal View History

2019-04-13 22:01:13 +02:00
{ bepasty-client-cli, gnused, writeDashBin }:
2015-11-05 16:13:10 +01:00
2016-06-13 02:04:22 +02:00
writeDashBin "krebspaste" ''
2019-04-13 22:01:13 +02: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 16:13:10 +01:00
''