summaryrefslogtreecommitdiffstats
path: root/doc/functions.xml
diff options
context:
space:
mode:
authorLily Ballard <lily@sb.org>2019-07-20 19:53:19 -0700
committerRobert Helgesson <robert@rycee.net>2019-09-04 23:19:17 +0200
commit43dade238f39fc3edb6c6be6d318e4f7f990f971 (patch)
treee3ffa6d22b5a7f0a847eb14fd1e0799b22beb665 /doc/functions.xml
parent37e333af9a18814537b872745d9b1c580c1b1a9d (diff)
installShellFiles: init (#65211)
This is a new package that provides a shell hook to make it easy to declare manpages and shell completions in a manner that doesn't require remembering where to actually install them. Basic usage looks like { stdenv, installShellFiles, ... }: stdenv.mkDerivation { # ... nativeBuildInputs = [ installShellFiles ]; postInstall = '' installManPage doc/foobar.1 installShellCompletion --bash share/completions/foobar.bash installShellCompletion --fish share/completions/foobar.fish installShellCompletion --zsh share/completions/_foobar ''; # ... } See source comments for more details on the functions.
Diffstat (limited to 'doc/functions.xml')
0 files changed, 0 insertions, 0 deletions