summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorJohannes Frankenau <johannes@frankenau.net>2018-05-13 21:49:23 +0200
committerJohannes Frankenau <johannes@frankenau.net>2018-05-13 22:51:04 +0200
commit5948024c40942999f5411914767f6a8bde9739b5 (patch)
treedb27dd53027d0208eb95c71b558bb3ff2c2912d0 /pkgs/tools
parentbb07e8903d25dd294b58426e9e5ad559d6717a5e (diff)
downloadnixpkgs-5948024c40942999f5411914767f6a8bde9739b5.tar
nixpkgs-5948024c40942999f5411914767f6a8bde9739b5.tar.gz
nixpkgs-5948024c40942999f5411914767f6a8bde9739b5.tar.bz2
nixpkgs-5948024c40942999f5411914767f6a8bde9739b5.tar.lz
nixpkgs-5948024c40942999f5411914767f6a8bde9739b5.tar.xz
nixpkgs-5948024c40942999f5411914767f6a8bde9739b5.tar.zst
nixpkgs-5948024c40942999f5411914767f6a8bde9739b5.zip
exa: install man page and shell completions
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/misc/exa/default.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/tools/misc/exa/default.nix b/pkgs/tools/misc/exa/default.nix
index c07420821ed..2e6753cec34 100644
--- a/pkgs/tools/misc/exa/default.nix
+++ b/pkgs/tools/misc/exa/default.nix
@@ -23,6 +23,20 @@ buildRustPackage rec {
     libiconv darwin.apple_sdk.frameworks.Security ]
   ;
 
+  postInstall = ''
+    mkdir -p $out/share/man/man1
+    cp contrib/man/exa.1 $out/share/man/man1/
+
+    mkdir -p $out/share/bash-completion/completions
+    cp contrib/completions.bash $out/share/bash-completion/completions/exa
+
+    mkdir -p $out/share/fish/vendor_completions.d
+    cp contrib/completions.fish $out/share/fish/vendor_completions.d/exa.fish
+
+    mkdir -p $out/share/zsh/site-functions
+    cp contrib/completions.zsh $out/share/zsh/site-functions/_exa
+  '';
+
   # Some tests fail, but Travis ensures a proper build
   doCheck = false;