3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/build-support/setup-hooks
Lily Ballard 43dade238f
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.
2019-09-04 23:19:17 +02:00
..
audit-tmpdir.sh audit-tmpdir hook: clean up whitespace 2018-12-02 11:45:34 +01:00
auto-patchelf.sh auto-patchelf: don't use grep -q, as it causes Broken pipe (#56958) 2019-03-20 14:57:59 +02:00
autoreconf.sh
breakpoint-hook.sh
compress-man-pages.sh
die.sh
enable-coverage-instrumentation.sh
find-xml-catalogs.sh
fix-darwin-dylib-names.sh gcj: fix build on Darwin 2019-01-30 18:19:17 +00:00
gog-unpack.sh
install-shell-files.sh installShellFiles: init (#65211) 2019-09-04 23:19:17 +02:00
keep-build-tree.sh
ld-is-cc-hook.sh
make-coverage-analysis-report.sh
make-wrapper.sh Document undocumented argument to makeWrapper() 2019-02-11 21:45:02 +01:00
move-docs.sh
move-lib64.sh
move-sbin.sh
multiple-outputs.sh
patch-shebangs.sh patchShebangs: Exit if no arguments were given 2019-05-26 16:05:06 +02:00
prune-libtool-files.sh pruneLibtoolFiles: check if prefix exists 2018-12-09 22:44:29 +00:00
role.bash
separate-debug-info.sh
set-java-classpath.sh
set-source-date-epoch-to-latest.sh set-source-date-epoch-to-latest: fix warning 2018-11-29 09:49:08 +01:00
setup-debug-info-dirs.sh
shorten-perl-shebang.sh add shortenPerlShebang function 2019-08-18 16:22:23 -07:00
strip.sh
update-autotools-gnu-config-scripts.sh
use-old-cxx-abi.sh
win-dll-link.sh
wrap-gapps-hook.sh wrapGAppsHook: add package’s own modules to GIO_EXTRA_MODULES 2019-03-13 23:03:53 +01:00