1 { lib, buildRubyGem, ruby, installShellFiles }:
3 # Cannot use bundleEnv because bundleEnv create stub with
4 # BUNDLE_FROZEN='1' environment variable set, which broke everything
5 # that rely on Bundler that runs under Tmuxinator.
9 name = "${gemName}-${version}";
10 gemName = "tmuxinator";
12 source.sha256 = "sha256-xixLYzDIvX3D+vbe9SccST37TnyZx/YjePLPjagHsOU=";
14 erubi = buildRubyGem rec {
16 name = "ruby${ruby.version}-${gemName}-${version}";
19 source.sha256 = "fca61b47daefd865d0fb50d168634f27ad40181867445badf6427c459c33cd62";
22 thor = buildRubyGem rec {
24 name = "ruby${ruby.version}-${gemName}-${version}";
27 source.sha256 = "sha256-7vApO54kFYzK16s4Oug1NLetTtmcCflvGmsDZVCrvto=";
30 xdg = buildRubyGem rec {
32 name = "ruby${ruby.version}-${gemName}-${version}";
35 source.sha256 = "04xr4cavnzxlk926pkji7b5yiqy4qsd3gdvv8mg6jliq6sczg9gk";
38 propagatedBuildInputs = [ erubi thor xdg ];
40 nativeBuildInputs = [ installShellFiles ];
43 installShellCompletion $GEM_HOME/gems/${gemName}-${version}/completion/tmuxinator.{bash,zsh,fish}
47 description = "Manage complex tmux sessions easily";
48 homepage = "https://github.com/tmuxinator/tmuxinator";
49 license = licenses.mit;
50 maintainers = with maintainers; [ auntie ericsagnes ];
51 platforms = platforms.unix;
52 mainProgram = "tmuxinator";