mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
tmuxPlugins.tmux-which-key: init at unstable-2024-06-08
This commit is contained in:
parent
25dd08a370
commit
d5bc05a4c9
2 changed files with 49 additions and 0 deletions
|
@ -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";
|
||||
|
|
45
pkgs/misc/tmux-plugins/tmux-which-key/default.nix
Normal file
45
pkgs/misc/tmux-plugins/tmux-which-key/default.nix
Normal file
|
@ -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 ]))
|
||||
];
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue