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";
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "3.0.1";
|
|
|
|
source.sha256 = "1vm96iyzbcy1388b3zyqivfhs4p63v87mp5qwlr4s8i2haq62xyf";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
erubis = buildRubyGem rec {
|
|
|
|
inherit ruby;
|
|
|
|
name = "ruby${ruby.version}-${gemName}-${version}";
|
|
|
|
gemName = "erubis";
|
|
|
|
version = "2.7.0";
|
|
|
|
source.sha256 = "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3";
|
|
|
|
};
|
|
|
|
|
|
|
|
thor = buildRubyGem rec {
|
|
|
|
inherit ruby;
|
|
|
|
name = "ruby${ruby.version}-${gemName}-${version}";
|
|
|
|
gemName = "thor";
|
|
|
|
version = "1.0.1";
|
|
|
|
source.sha256 = "1xbhkmyhlxwzshaqa7swy2bx6vd64mm0wrr8g3jywvxy7hg0cwkm";
|
|
|
|
};
|
|
|
|
|
|
|
|
xdg = buildRubyGem rec {
|
|
|
|
inherit ruby;
|
|
|
|
name = "ruby${ruby.version}-${gemName}-${version}";
|
|
|
|
gemName = "xdg";
|
|
|
|
version = "2.2.5";
|
|
|
|
source.sha256 = "04xr4cavnzxlk926pkji7b5yiqy4qsd3gdvv8mg6jliq6sczg9gk";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ erubis thor xdg ];
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|