diff options
-rw-r--r-- | lib/common.nix | 22 |
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 = { |