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

7 lines
203 B
Nix

{ writeDashBin, bepasty-client-cli }:
# TODO use `execve` instead?
writeDashBin "krebspaste" ''
exec ${bepasty-client-cli}/bin/bepasty-cli -L 1m --url http://paste.r "$@" | sed '$ s/$/\/+inline/g'
''