Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmuxPlugins.tmux-which-key: init at 0-unstable-2024-06-08 #372455

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16635,6 +16635,12 @@
githubId = 126072875;
name = "nova madeline";
};
novaviper = {
email = "coder.nova99@mailbox.org";
github = "novaviper";
githubId = 7191115;
name = "Nova Leary";
};
novoxd = {
email = "radnovox@gmail.com";
github = "novoxd";
Expand Down
4 changes: 4 additions & 0 deletions pkgs/misc/tmux-plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,10 @@ in rec {
};
};

tmux-which-key = pkgs.callPackage ./tmux-which-key {
inherit mkTmuxPlugin;
};

yank = mkTmuxPlugin {
pluginName = "yank";
version = "unstable-2023-07-19";
Expand Down
45 changes: 45 additions & 0 deletions pkgs/misc/tmux-plugins/tmux-which-key/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
mkTmuxPlugin,
fetchFromGitHub,
lib,
check-jsonschema,
python3,
}:
mkTmuxPlugin {
pluginName = "tmux-which-key";
rtpFilePath = "plugin.sh.tmux";
version = "0-unstable-2024-06-08";
buildInputs = [
check-jsonschema
(python3.withPackages (ps: with ps; [ pyyaml ]))
NovaViper marked this conversation as resolved.
Show resolved Hide resolved
];

postPatch = ''
substituteInPlace plugin.sh.tmux --replace-fail \
python3 "${lib.getExe (python3.withPackages (ps: with ps; [ pyyaml ]))}"
'';

preInstall = ''
rm -rf plugin/pyyaml
ln -s ${python3.pkgs.pyyaml.src} plugin/pyyaml
FliegendeWurst marked this conversation as resolved.
Show resolved Hide resolved
'';

postInstall = ''
patchShebangs plugin.sh.tmux plugin/build.py
'';

src = fetchFromGitHub {
owner = "alexwforsythe";
repo = "tmux-which-key";
rev = "1f419775caf136a60aac8e3a269b51ad10b51eb6";
hash = "sha256-X7FunHrAexDgAlZfN+JOUJvXFZeyVj9yu6WRnxMEA8E=";
};

meta = {
homepage = "https://github.com/alexwforsythe/tmux-which-key";
description = "Tmux plugin that allows users to select actions from a customizable popup menu";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ novaviper ];
};
}