2021-03-15 08:37:03 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "3mux";
|
2021-03-15 08:37:03 +00:00
|
|
|
version = "1.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aaronjanse";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-15 08:37:03 +00:00
|
|
|
sha256 = "sha256-QT4QXTlJf2NfTqXE4GF759EoW6Ri12lxDyodyEFc+ag=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-tbziQZIA1+b+ZtvA/865c8YQxn+r8HQy6Pqaac2kwcU=";
|
|
|
|
|
|
|
|
# This is a package used for internally testing 3mux. It's meant for
|
|
|
|
# use by 3mux maintainers/contributors only.
|
|
|
|
excludedPackages = [ "fuzz" ];
|
|
|
|
|
|
|
|
# 3mux needs to have itself in the path so users can run `3mux detach`.
|
|
|
|
# This ensures that, while inside 3mux, the binary in the path is the
|
|
|
|
# same version as the 3mux hosting the session. This also allows users
|
|
|
|
# to use 3mux via `nix run nixpkgs#_3mux` (otherwise they'd get "command
|
|
|
|
# not found").
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/3mux --prefix PATH : $out/bin
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Terminal multiplexer inspired by i3";
|
2020-10-16 20:44:37 +00:00
|
|
|
longDescription = ''
|
2021-03-15 08:37:03 +00:00
|
|
|
Terminal multiplexer with out-of-the-box support for search,
|
|
|
|
mouse-controlled scrollback, and i3-like keybindings
|
2020-10-16 20:44:37 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/aaronjanse/3mux";
|
|
|
|
license = licenses.mit;
|
2020-11-19 00:13:47 +00:00
|
|
|
maintainers = with maintainers; [ aaronjanse Br1ght0ne ];
|
2020-10-16 20:44:37 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|