2020-04-06 00:55:33 +00:00
|
|
|
{ lib
|
2019-07-24 10:55:12 +00:00
|
|
|
, fetchFromGitHub
|
2018-11-15 03:29:26 +00:00
|
|
|
, pkgs
|
|
|
|
, reattach-to-user-namespace
|
|
|
|
, stdenv
|
|
|
|
}:
|
2018-03-11 08:47:36 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
rtpPath = "share/tmux-plugins";
|
|
|
|
|
2018-08-06 17:13:01 +00:00
|
|
|
addRtp = path: rtpFilePath: attrs: derivation:
|
|
|
|
derivation // { rtp = "${derivation}/${path}/${rtpFilePath}"; } // {
|
2018-08-06 19:08:59 +00:00
|
|
|
overrideAttrs = f: mkDerivation (attrs // f attrs);
|
2018-03-11 08:47:36 +00:00
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
mkDerivation = a@{
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName,
|
2018-08-06 17:13:01 +00:00
|
|
|
rtpFilePath ? (builtins.replaceStrings ["-"] ["_"] pluginName) + ".tmux",
|
2018-03-11 08:47:36 +00:00
|
|
|
namePrefix ? "tmuxplugin-",
|
|
|
|
src,
|
|
|
|
unpackPhase ? "",
|
2018-08-06 19:08:59 +00:00
|
|
|
configurePhase ? ":",
|
|
|
|
buildPhase ? ":",
|
2018-03-11 08:47:36 +00:00
|
|
|
addonInfo ? null,
|
|
|
|
preInstall ? "",
|
|
|
|
postInstall ? "",
|
2019-11-24 17:22:28 +00:00
|
|
|
path ? lib.getName pluginName,
|
2018-03-11 08:47:36 +00:00
|
|
|
dependencies ? [],
|
|
|
|
...
|
|
|
|
}:
|
2018-08-06 17:13:01 +00:00
|
|
|
addRtp "${rtpPath}/${path}" rtpFilePath a (stdenv.mkDerivation (a // {
|
2020-04-06 00:55:33 +00:00
|
|
|
pname = namePrefix + pluginName;
|
2018-03-11 08:47:36 +00:00
|
|
|
|
|
|
|
inherit pluginName unpackPhase configurePhase buildPhase addonInfo preInstall postInstall;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
target=$out/${rtpPath}/${path}
|
|
|
|
mkdir -p $out/${rtpPath}
|
|
|
|
cp -r . $target
|
|
|
|
if [ -n "$addonInfo" ]; then
|
|
|
|
echo "$addonInfo" > $target/addon-info.json
|
|
|
|
fi
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
dependencies = [ pkgs.bash ] ++ dependencies;
|
|
|
|
}));
|
|
|
|
|
|
|
|
in rec {
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
inherit mkDerivation;
|
|
|
|
|
|
|
|
battery = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "battery";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2019-07-04";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-battery";
|
|
|
|
rev = "f8b8e8451990365e0c98c38c184962e4f83b793b";
|
|
|
|
sha256 = "1bhdzsx3kdjqjmm1q4j8937lrpkzf71irr3fqhdbddsghwrrmwim";
|
2018-03-11 08:47:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
continuum = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "continuum";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2018-02-23";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-continuum";
|
|
|
|
rev = "1531b3770a7cf7373d15fedd239c5331b99342d1";
|
|
|
|
sha256 = "1w3f7gzvv1k25yfr6d1snr2z88p8f87cahrbaslmyphdxpy0fa4m";
|
2018-03-11 08:47:36 +00:00
|
|
|
};
|
|
|
|
dependencies = [ resurrect ];
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
copycat = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "copycat";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2020-01-09";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-copycat";
|
|
|
|
rev = "77ca3aab2aed8ede3e2b941079b1c92dd221cf5f";
|
|
|
|
sha256 = "1bchwzhai8k5rk32n4lrmh56rw944jqxr8imjk74hyaa7bbn81ds";
|
2018-03-11 08:47:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
cpu = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "cpu";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2020-04-05";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-cpu";
|
|
|
|
rev = "8858050756e1fc3c081d37894b441f05ea893a67";
|
|
|
|
sha256 = "1bydzrnd9y5y46hjr844p4ylx2dpijn6pv3w94yyvwbyswmirhff";
|
2018-03-11 08:47:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-04-06 00:55:33 +00:00
|
|
|
ctrlw = mkDerivation rec {
|
2019-07-25 19:13:07 +00:00
|
|
|
pluginName = "ctrlw";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "0.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eraserhd";
|
|
|
|
repo = "tmux-ctrlw";
|
|
|
|
rev = "v${version}";
|
2019-12-09 19:47:12 +00:00
|
|
|
sha256 = "1kv5pqfjczd6z7i9jf6j5xmcai50l9bn5p2p1w1l5fi6cj8cz1k1";
|
2019-07-25 19:13:07 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
fpp = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "fpp";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2016-03-08";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-fpp";
|
2018-03-11 08:47:36 +00:00
|
|
|
rev = "ca125d5a9c80bb156ac114ac3f3d5951a795c80e";
|
|
|
|
sha256 = "1b89s6mfzifi7s5iwf22w7niddpq28w48nmqqy00dv38z4yga5ws";
|
|
|
|
};
|
|
|
|
postInstall = ''
|
|
|
|
sed -i -e 's|fpp |${pkgs.fpp}/bin/fpp |g' $target/fpp.tmux
|
|
|
|
'';
|
|
|
|
dependencies = [ pkgs.fpp ];
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
fzf-tmux-url = mkDerivation {
|
2018-08-05 07:13:36 +00:00
|
|
|
pluginName = "fzf-tmux-url";
|
2018-08-06 17:13:01 +00:00
|
|
|
rtpFilePath = "fzf-url.tmux";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2019-12-02";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wfxr";
|
|
|
|
repo = "tmux-fzf-url";
|
|
|
|
rev = "2baa410bf7a0f6ceb62a83770baf90d570406ac0";
|
|
|
|
sha256 = "0rjzzlmxgjrr8g19bg2idcqr9ny07mrq2s39vndg24n0m7znh3fz";
|
2018-08-05 07:13:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-10-30 14:34:03 +00:00
|
|
|
gruvbox = mkDerivation {
|
|
|
|
pluginName = "gruvbox";
|
|
|
|
rtpFilePath = "gruvbox-tpm.tmux";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2019-05-05";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "egel";
|
|
|
|
repo = "tmux-gruvbox";
|
2019-10-30 14:34:03 +00:00
|
|
|
rev = "6149fd8b5d6924925b4d5aa6935039780e94f3d6";
|
|
|
|
sha256 = "1ykr4yardavd0x7yfrnshd4b0gi8p31pji7i79ib0nss134zncpb";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
logging = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "logging";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2019-04-19";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-logging";
|
|
|
|
rev = "b085ad423b5d59a2c8b8d71772352e7028b8e1d0";
|
|
|
|
sha256 = "0p0sawysalhi8k2a5hdxniqx6kb24kd8rnvfzkjqigzid5ik37js";
|
2018-03-11 08:47:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
net-speed = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "net-speed";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2018-12-02";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-net-speed";
|
|
|
|
rev = "58abb615971cb617821e2e7e41c660334f55a92d";
|
|
|
|
sha256 = "1aj06gdhzcxsydjzf21n9kyxigwf38kh2rg8hh7gnjk260ydqlrc";
|
2018-03-11 08:47:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
maildir-counter = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "maildir-counter";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2016-11-25";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-maildir-counter";
|
2018-03-11 08:47:36 +00:00
|
|
|
rev = "9415f0207e71e37cbd870c9443426dbea6da78b9";
|
|
|
|
sha256 = "0dwvqhiv9bjwr01hsi5c57n55jyv5ha5m5q1aqgglf4wyhbnfms4";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
online-status = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "online-status";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2018-11-30";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-online-status";
|
2018-03-11 08:47:36 +00:00
|
|
|
rev = "ea86704ced8a20f4a431116aa43f57edcf5a6312";
|
|
|
|
sha256 = "1hy3vg8v2sir865ylpm2r4ip1zgd4wlrf24jbwh16m23qdcvc19r";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
open = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "open";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2019-12-02";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-open";
|
|
|
|
rev = "cedb4584908bd8458fadc8d3e64101d3cbb48d46";
|
|
|
|
sha256 = "10s0xdhmg0dhpj13ybcq72pw3xgb2dq5v5h2mwidzqyh9g17wndh";
|
2018-03-11 08:47:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
pain-control = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "pain-control";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2020-02-18";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-pain-control";
|
|
|
|
rev = "2db63de3b08fc64831d833240749133cecb67d92";
|
|
|
|
sha256 = "0w7a6n4n86ysiqcqj12j2hg9r5fznvbp3dz8pzas9q1k3avlk0zk";
|
2018-03-11 08:47:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-04-06 00:55:33 +00:00
|
|
|
plumb = mkDerivation rec {
|
2019-11-05 03:49:33 +00:00
|
|
|
pluginName = "plumb";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "0.1.1";
|
2019-11-05 03:49:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eraserhd";
|
|
|
|
repo = "tmux-plumb";
|
2020-04-06 00:55:33 +00:00
|
|
|
rev = "v${version}";
|
2019-11-05 03:49:33 +00:00
|
|
|
sha256 = "1c6k4fdl0az9811r6k164mgd4w5la75xr6x7nabmy046xc0z5i2r";
|
|
|
|
};
|
|
|
|
postInstall = ''
|
|
|
|
sed -i -e 's,9 plumb,${pkgs.plan9port}/bin/9 plumb,' $target/scripts/plumb
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
prefix-highlight = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "prefix-highlight";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2020-03-26";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-prefix-highlight";
|
|
|
|
rev = "1db6e735aad54503b076391d791c56e1af213917";
|
|
|
|
sha256 = "0ws9blzg00zhz548m51cm6zbrkqlz7jazkr5029vka1f6qk36x0g";
|
2018-03-11 08:47:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
resurrect = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "resurrect";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2020-03-21";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-resurrect";
|
|
|
|
rev = "327c0481ad20c429b4e692e092659f8b3346b08f";
|
|
|
|
sha256 = "0nxfqazww36wwv49dzd39kq4jfls20834hf1458sf5pvmv5cmbyw";
|
2018-03-11 08:47:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
sensible = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "sensible";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2017-09-05";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-sensible";
|
2018-03-11 08:47:36 +00:00
|
|
|
rev = "e91b178ff832b7bcbbf4d99d9f467f63fd1b76b5";
|
|
|
|
sha256 = "1z8dfbwblrbmb8sgb0k8h1q0dvfdz7gw57las8nwd5gj6ss1jyvx";
|
|
|
|
};
|
2018-11-15 03:29:26 +00:00
|
|
|
postInstall = lib.optionalString pkgs.stdenv.isDarwin ''
|
|
|
|
sed -e 's:reattach-to-user-namespace:${reattach-to-user-namespace}/bin/reattach-to-user-namespace:g' -i $target/sensible.tmux
|
|
|
|
'';
|
2018-03-11 08:47:36 +00:00
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
sessionist = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "sessionist";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2017-12-03";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-sessionist";
|
2018-03-11 08:47:36 +00:00
|
|
|
rev = "09ec86be38eae98ffc27bd0dde605ed10ae0dc89";
|
|
|
|
sha256 = "030q2mmj8akbc26jnqn8n7fckg1025p0ildx4wr401b6p1snnlw4";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
sidebar = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "sidebar";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2018-11-30";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-sidebar";
|
|
|
|
rev = "aacbdb45bc5ab69db448a72de4155d0b8dbac677";
|
|
|
|
sha256 = "1bp90zbv19kbbiik0bgb893ybss1jqsnk3353a631993xjwsih7c";
|
2018-03-11 08:47:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-09-14 23:02:12 +00:00
|
|
|
sysstat = mkDerivation {
|
|
|
|
pluginName = "sysstat";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2017-12-12";
|
2019-09-14 23:02:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "samoshkin";
|
|
|
|
repo = "tmux-plugin-sysstat";
|
|
|
|
rev = "29e150f403151f2341f3abcb2b2487a5f011dd23";
|
|
|
|
sha256 = "013mv9p6r2r0ls3p60l8hdad4hm8niv3wr27vgm925gxmibi4hyq";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-07-24 10:55:12 +00:00
|
|
|
tmux-colors-solarized = mkDerivation {
|
|
|
|
pluginName = "tmuxcolors";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2019-07-14";
|
2019-07-24 10:55:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "seebi";
|
|
|
|
repo = "tmux-colors-solarized";
|
|
|
|
rev = "e5e7b4f1af37f8f3fc81ca17eadee5ae5d82cd09";
|
|
|
|
sha256 = "1l3i82abzi4b395cgdsjg7lcfaq15kyyhijwvrgchzxi95z3hl4x";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
urlview = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "urlview";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2016-01-06";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-urlview";
|
2018-03-11 08:47:36 +00:00
|
|
|
rev = "b84c876cffdd22990b4ab51247e795cbd7813d53";
|
|
|
|
sha256 = "1jp4jq57cn116b3i34v6yy69izd8s6mp2ijr260cw86g0470k0fn";
|
|
|
|
};
|
|
|
|
postInstall = ''
|
|
|
|
sed -i -e '14,20{s|urlview|${pkgs.urlview}/bin/urlview|g}' $target/urlview.tmux
|
|
|
|
'';
|
|
|
|
dependencies = [ pkgs.urlview ];
|
|
|
|
};
|
|
|
|
|
2019-03-20 22:24:41 +00:00
|
|
|
vim-tmux-navigator = mkDerivation {
|
|
|
|
pluginName = "vim-tmux-navigator";
|
2019-04-26 15:12:19 +00:00
|
|
|
rtpFilePath = "vim-tmux-navigator.tmux";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2019-12-10";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "christoomey";
|
|
|
|
repo = "vim-tmux-navigator";
|
|
|
|
rev = "8fdf78292bb3aed1c9de880be7e03efdbf23d306";
|
|
|
|
sha256 = "0y92na4dcfcsj5zbs3m7y6csl3sd46a9968id78cdn9cgg8iwzac";
|
2019-03-20 22:24:41 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-06 19:08:59 +00:00
|
|
|
yank = mkDerivation {
|
2018-03-11 08:47:36 +00:00
|
|
|
pluginName = "yank";
|
2020-04-06 00:55:33 +00:00
|
|
|
version = "unstable-2019-12-02";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmux-plugins";
|
|
|
|
repo = "tmux-yank";
|
|
|
|
rev = "648005db64d9bf3c4650eff694ecb6cf3e42b0c8";
|
|
|
|
sha256 = "1zg9k8yk1iw01vl8m44w4sv20lln4l0lq9dafc09lxmgxm9dllj4";
|
2018-03-11 08:47:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|