Merge pull request #204312 from deejayem/add-tmux-copy-toolkit

This commit is contained in:
Sandro 2022-12-04 19:50:16 +01:00 committed by GitHub
commit ecebb7d25f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,6 +119,29 @@ in rec {
};
};
copy-toolkit = mkTmuxPlugin rec {
pluginName = "copy-toolkit";
rtpFilePath = "copytk.tmux";
version = "1.1";
src = fetchFromGitHub {
owner = "CrispyConductor";
repo = "tmux-copy-toolkit";
rev = "v${version}";
sha256 = "MEMC9klm+PH66UHwrB2SqdCaZX0LAujL+Woo/hV84m4=";
};
postInstall = ''
sed -i -e 's|python3 |${pkgs.python3}/bin/python3 |g' $target/copytk.tmux
sed -i -e 's|/bin/bash|${pkgs.bash}/bin/bash|g;s|/bin/cat|${pkgs.coreutils}/bin/cat|g' $target/copytk.py
'';
meta = {
homepage = "https://github.com/CrispyConductor/tmux-copy-toolkit";
description = "Various copy-mode tools";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ deejayem ];
};
};
copycat = mkTmuxPlugin {
pluginName = "copycat";
version = "unstable-2020-01-09";