summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-04-06 08:26:35 -0400
committerBen Sima <ben@bsima.me>2021-04-06 08:26:35 -0400
commitce21c1cf0fadd403f63969590da0ca7df0c518b1 (patch)
tree36503148431075ea270eb62cabcf2b0d8b1ee5b3 /lib
parentd4285f0e501f6d7bdf33cbfa47577ebb6258042f (diff)
Add tmux extrakto
Diffstat (limited to 'lib')
-rw-r--r--lib/common.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/common.nix b/lib/common.nix
index ebde0cb..1b850fe 100644
--- a/lib/common.nix
+++ b/lib/common.nix
@@ -120,6 +120,28 @@ in
terminal = "xterm-256color";
sensibleOnTop = true;
secureSocket = false;
+ plugins = [
+ # copied from upstream nixpkgs
+ (pkgs.tmuxPlugins.mkDerivation {
+ pluginName = "extrakto";
+ version = "2021-04-06";
+ src = pkgs.fetchFromGitHub {
+ owner = "laktak";
+ repo = "extrakto";
+ rev = "de8ac3e8a9fa887382649784ed8cae81f5757f77";
+ sha256 = "0mkp9r6mipdm7408w7ls1vfn6i3hj19nmir2bvfcp12b69zlzc47";
+ };
+ nativeBuildInputs = [ pkgs.makeWrapper ];
+ postInstall = ''
+ for f in extrakto.sh open.sh tmux-extrakto.sh; do
+ wrapProgram $target/scripts/$f \
+ --prefix PATH : ${with pkgs; lib.makeBinPath (
+ [pkgs.fzf pkgs.python3 pkgs.xclip]
+ )}
+ done
+ '';
+ })
+ ];
};
urxvt = {