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

7 lines
203 B
Nix
Raw Normal View History

2016-06-13 00:04:22 +00:00
{ writeDashBin, bepasty-client-cli }:
2015-11-05 15:13:10 +00:00
2016-06-13 00:04:22 +00:00
# TODO use `execve` instead?
writeDashBin "krebspaste" ''
2017-04-13 12:03:36 +00:00
exec ${bepasty-client-cli}/bin/bepasty-cli -L 1m --url http://paste.r "$@" | sed '$ s/$/\/+inline/g'
2015-11-05 15:13:10 +00:00
''