mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-06 04:03:04 +00:00
![aleksana](/assets/img/avatar_default.png)
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
55 lines
1.6 KiB
Nix
55 lines
1.6 KiB
Nix
{ lib, buildRubyGem, ruby, installShellFiles }:
|
|
|
|
# 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";
|
|
version = "3.3.2";
|
|
source.sha256 = "sha256-q1VS4ChHVqIpHHO/fGANG5IjgwUfBT2VqT9WAkQeGh4=";
|
|
|
|
erubi = buildRubyGem rec {
|
|
inherit ruby;
|
|
name = "ruby${ruby.version}-${gemName}-${version}";
|
|
gemName = "erubi";
|
|
version = "1.13.0";
|
|
source.sha256 = "fca61b47daefd865d0fb50d168634f27ad40181867445badf6427c459c33cd62";
|
|
};
|
|
|
|
thor = buildRubyGem rec {
|
|
inherit ruby;
|
|
name = "ruby${ruby.version}-${gemName}-${version}";
|
|
gemName = "thor";
|
|
version = "1.3.2";
|
|
source.sha256 = "sha256-7vApO54kFYzK16s4Oug1NLetTtmcCflvGmsDZVCrvto=";
|
|
};
|
|
|
|
xdg = buildRubyGem rec {
|
|
inherit ruby;
|
|
name = "ruby${ruby.version}-${gemName}-${version}";
|
|
gemName = "xdg";
|
|
version = "2.2.5";
|
|
source.sha256 = "04xr4cavnzxlk926pkji7b5yiqy4qsd3gdvv8mg6jliq6sczg9gk";
|
|
};
|
|
|
|
propagatedBuildInputs = [ erubi 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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ auntie ericsagnes ];
|
|
platforms = platforms.unix;
|
|
mainProgram = "tmuxinator";
|
|
};
|
|
}
|