summary refs log tree commit diff
diff options
context:
space:
mode:
authorSerg Nesterov <i.am.cust0dian@gmail.com>2020-05-01 17:46:05 +0300
committerSerg Nesterov <i.am.cust0dian@gmail.com>2020-05-01 17:50:00 +0300
commit7259b4ce12112dc23dbd3d742ff3e547dc6fd8f9 (patch)
treee27ae990e8e984b1739584779b38abc68a7e892a
parent61396047dc3165a7c39cdb2fe565266d5ae9c2fe (diff)
downloadnixpkgs-7259b4ce12112dc23dbd3d742ff3e547dc6fd8f9.tar
nixpkgs-7259b4ce12112dc23dbd3d742ff3e547dc6fd8f9.tar.gz
nixpkgs-7259b4ce12112dc23dbd3d742ff3e547dc6fd8f9.tar.bz2
nixpkgs-7259b4ce12112dc23dbd3d742ff3e547dc6fd8f9.tar.lz
nixpkgs-7259b4ce12112dc23dbd3d742ff3e547dc6fd8f9.tar.xz
nixpkgs-7259b4ce12112dc23dbd3d742ff3e547dc6fd8f9.tar.zst
nixpkgs-7259b4ce12112dc23dbd3d742ff3e547dc6fd8f9.zip
Install shell completions
-rw-r--r--pkgs/tools/misc/tmuxinator/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/tools/misc/tmuxinator/default.nix b/pkgs/tools/misc/tmuxinator/default.nix
index abfa19b376c..ae8e7926eb9 100644
--- a/pkgs/tools/misc/tmuxinator/default.nix
+++ b/pkgs/tools/misc/tmuxinator/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildRubyGem, ruby }:
+{ lib, buildRubyGem, ruby, installShellFiles }:
 
 # Cannot use bundleEnv because bundleEnv create stub with
 # BUNDLE_FROZEN='1' environment variable set, which broke everything
@@ -37,6 +37,12 @@ buildRubyGem rec {
 
   propagatedBuildInputs = [ erubis thor xdg ];
 
+  nativeBuildInputs = [ installShellFiles ];
+
+  postInstall = ''
+    installShellCompletion $GEM_HOME/gems/${gemName}-${version}/completion/tmuxinator.{bash,zsh,fish}
+  '';
+
   meta = with lib; {
     description = "Manage complex tmux sessions easily";
     homepage    = "https://github.com/tmuxinator/tmuxinator";