From 4c153ed633acbeaf52bf19b3365fb2d2f312867b Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sat, 20 Apr 2024 22:55:41 -0600 Subject: home/desktop, pkgs: add tmux-pass --- pkgs/default.nix | 1 + pkgs/tmux-pass.nix | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/tmux-pass.nix (limited to 'pkgs') diff --git a/pkgs/default.nix b/pkgs/default.nix index f220934..9fd6fd9 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -14,6 +14,7 @@ in scripts = callPackage ./scripts { }; simple-scalar = callPackage ./simple-scalar { }; tmux-lift = callPackage ./tmux-lift { }; + tmux-pass = callPackage ./tmux-pass.nix { }; st = prev.st.override { conf = import ./st.nix { }; diff --git a/pkgs/tmux-pass.nix b/pkgs/tmux-pass.nix new file mode 100644 index 0000000..608ad95 --- /dev/null +++ b/pkgs/tmux-pass.nix @@ -0,0 +1,25 @@ +{ fetchFromGitHub +, fzf +, pass +, tmuxPlugins +}: +tmuxPlugins.mkTmuxPlugin { + pluginName = "tmux-pass"; + version = "master"; + + src = fetchFromGitHub { + repo = "tmux-pass"; + owner = "rafi"; + + rev = "76b1c98911d56928063a41bc93a2d9e81818ef4c"; + sha256 = "102n4f5zcqijf5ywdahgmj0yhaibv0zgpvdq8wwkm8vbhvhb7abd"; + }; + + rtpFilePath = "plugin.tmux"; + + postInstall = '' + substituteInPlace $target/scripts/main.sh \ + --replace 'fzf \' '${fzf}/bin/fzf \' \ + --replace 'pass ' '${pass}/bin/pass ' + ''; +} -- cgit v1.2.3