From ce21c1cf0fadd403f63969590da0ca7df0c518b1 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 6 Apr 2021 08:26:35 -0400 Subject: Add tmux extrakto --- lib/common.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'lib') 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 = { -- cgit v1.2.3