diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-04-20 22:55:41 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-04-20 22:55:41 -0600 |
| commit | 4c153ed633acbeaf52bf19b3365fb2d2f312867b (patch) | |
| tree | 039891531851cf1fa29b58f8a55b81b148f0833e /pkgs | |
| parent | fa0728ffcd677923a8c8f9e2735d784b7fae84e5 (diff) | |
home/desktop, pkgs: add tmux-pass
Diffstat (limited to '')
| -rw-r--r-- | pkgs/default.nix | 1 | ||||
| -rw-r--r-- | pkgs/tmux-pass.nix | 25 |
2 files changed, 26 insertions, 0 deletions
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 ' + ''; +} |
