diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-12-22 16:45:06 -0800 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2020-12-23 11:50:38 -0800 |
commit | 1bf598874faf12791607cfa25d1067d35dc6ca32 (patch) | |
tree | 3b88f009abfadfeae99c9e4900322be1969bc4ff /pkgs/development/tools/build-managers/meson | |
parent | f1957cd789569c6586e0c7b420fe6075d0986cd7 (diff) | |
download | nixpkgs-1bf598874faf12791607cfa25d1067d35dc6ca32.tar nixpkgs-1bf598874faf12791607cfa25d1067d35dc6ca32.tar.gz nixpkgs-1bf598874faf12791607cfa25d1067d35dc6ca32.tar.bz2 nixpkgs-1bf598874faf12791607cfa25d1067d35dc6ca32.tar.lz nixpkgs-1bf598874faf12791607cfa25d1067d35dc6ca32.tar.xz nixpkgs-1bf598874faf12791607cfa25d1067d35dc6ca32.tar.zst nixpkgs-1bf598874faf12791607cfa25d1067d35dc6ca32.zip |
meson: install shell completions
meson ships with both bash and zsh completions, the zsh completions are more complete than the bash ones.
Diffstat (limited to 'pkgs/development/tools/build-managers/meson')
-rw-r--r-- | pkgs/development/tools/build-managers/meson/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/meson/default.nix b/pkgs/development/tools/build-managers/meson/default.nix index cd506b970f6..890c457da05 100644 --- a/pkgs/development/tools/build-managers/meson/default.nix +++ b/pkgs/development/tools/build-managers/meson/default.nix @@ -4,6 +4,7 @@ , writeTextDir , substituteAll , fetchpatch +, installShellFiles }: python3.pkgs.buildPythonApplication rec { @@ -77,6 +78,13 @@ python3.pkgs.buildPythonApplication rec { rm $out/nix-support/propagated-build-inputs ''; + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installShellCompletion --zsh data/shell-completions/zsh/_meson + installShellCompletion --bash data/shell-completions/bash/meson + ''; + meta = with lib; { homepage = "https://mesonbuild.com"; description = "SCons-like build system that use python as a front-end language and Ninja as a building backend"; |