2020-05-01 14:46:05 +00:00
|
|
|
{ lib, buildRubyGem, ruby, installShellFiles }:
|
2015-02-21 03:49:45 +00:00
|
|
|
|
2016-05-31 17:36:04 +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.
|
2015-02-21 03:49:45 +00:00
|
|
|
|
2016-05-31 17:36:04 +00:00
|
|
|
buildRubyGem rec {
|
2015-02-21 03:49:45 +00:00
|
|
|
inherit ruby;
|
2016-05-31 17:36:04 +00:00
|
|
|
name = "${gemName}-${version}";
|
|
|
|
gemName = "tmuxinator";
|
2022-07-20 19:52:28 +00:00
|
|
|
version = "3.0.5";
|
|
|
|
source.sha256 = "1ycsx9mvl0jsds4igi6avxclsyl5lndh1mpj2ykvzfz26wdddg6p";
|
2016-05-31 17:36:04 +00:00
|
|
|
|
|
|
|
erubis = buildRubyGem rec {
|
|
|
|
inherit ruby;
|
|
|
|
name = "ruby${ruby.version}-${gemName}-${version}";
|
|
|
|
gemName = "erubis";
|
|
|
|
version = "2.7.0";
|
2017-10-05 08:10:57 +00:00
|
|
|
source.sha256 = "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3";
|
2016-05-31 17:36:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
thor = buildRubyGem rec {
|
|
|
|
inherit ruby;
|
|
|
|
name = "ruby${ruby.version}-${gemName}-${version}";
|
|
|
|
gemName = "thor";
|
2022-07-20 19:52:28 +00:00
|
|
|
version = "1.2.1";
|
|
|
|
source.sha256 = "0inl77jh4ia03jw3iqm5ipr76ghal3hyjrd6r8zqsswwvi9j2xdi";
|
2016-05-31 17:36:04 +00:00
|
|
|
};
|
|
|
|
|
2017-10-20 22:00:33 +00:00
|
|
|
xdg = buildRubyGem rec {
|
|
|
|
inherit ruby;
|
|
|
|
name = "ruby${ruby.version}-${gemName}-${version}";
|
|
|
|
gemName = "xdg";
|
2020-01-20 16:59:53 +00:00
|
|
|
version = "2.2.5";
|
|
|
|
source.sha256 = "04xr4cavnzxlk926pkji7b5yiqy4qsd3gdvv8mg6jliq6sczg9gk";
|
2017-10-20 22:00:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ erubis thor xdg ];
|
2015-02-21 03:49:45 +00:00
|
|
|
|
2020-05-01 14:46:05 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion $GEM_HOME/gems/${gemName}-${version}/completion/tmuxinator.{bash,zsh,fish}
|
|
|
|
'';
|
|
|
|
|
2015-02-21 03:49:45 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Manage complex tmux sessions easily";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/tmuxinator/tmuxinator";
|
2015-05-28 17:20:29 +00:00
|
|
|
license = licenses.mit;
|
2017-06-18 11:45:51 +00:00
|
|
|
maintainers = with maintainers; [ auntie ericsagnes ];
|
2015-02-21 03:49:45 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2017-06-18 11:45:51 +00:00
|
|
|
}
|