2020-05-03 17:38:23 +00:00
|
|
|
{ lib, buildRubyGem, ruby, installShellFiles }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Cannot use bundleEnv because bundleEnv create stub with
|
|
|
|
# BUNDLE_FROZEN='1' environment variable set, which broke everything
|
|
|
|
# that rely on Bundler that runs under Tmuxinator.
|
|
|
|
|
|
|
|
buildRubyGem rec {
|
|
|
|
inherit ruby;
|
|
|
|
name = "${gemName}-${version}";
|
|
|
|
gemName = "tmuxinator";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "3.3.1";
|
|
|
|
source.sha256 = "sha256-xixLYzDIvX3D+vbe9SccST37TnyZx/YjePLPjagHsOU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-09 16:51:18 +00:00
|
|
|
erubi = buildRubyGem rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit ruby;
|
|
|
|
name = "ruby${ruby.version}-${gemName}-${version}";
|
2024-10-09 16:51:18 +00:00
|
|
|
gemName = "erubi";
|
|
|
|
version = "1.13.0";
|
|
|
|
source.sha256 = "fca61b47daefd865d0fb50d168634f27ad40181867445badf6427c459c33cd62";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
thor = buildRubyGem rec {
|
|
|
|
inherit ruby;
|
|
|
|
name = "ruby${ruby.version}-${gemName}-${version}";
|
|
|
|
gemName = "thor";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "1.3.2";
|
|
|
|
source.sha256 = "sha256-7vApO54kFYzK16s4Oug1NLetTtmcCflvGmsDZVCrvto=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
xdg = buildRubyGem rec {
|
|
|
|
inherit ruby;
|
|
|
|
name = "ruby${ruby.version}-${gemName}-${version}";
|
|
|
|
gemName = "xdg";
|
|
|
|
version = "2.2.5";
|
|
|
|
source.sha256 = "04xr4cavnzxlk926pkji7b5yiqy4qsd3gdvv8mg6jliq6sczg9gk";
|
|
|
|
};
|
|
|
|
|
2024-10-09 16:51:18 +00:00
|
|
|
propagatedBuildInputs = [ erubi thor xdg ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion $GEM_HOME/gems/${gemName}-${version}/completion/tmuxinator.{bash,zsh,fish}
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Manage complex tmux sessions easily";
|
|
|
|
homepage = "https://github.com/tmuxinator/tmuxinator";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ auntie ericsagnes ];
|
|
|
|
platforms = platforms.unix;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "tmuxinator";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|