1 { lib, buildGoModule, fetchFromGitHub, fetchpatch, makeWrapper }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-QT4QXTlJf2NfTqXE4GF759EoW6Ri12lxDyodyEFc+ag=";
15 # Fix the build for Darwin when building with Go 1.18.
16 # https://github.com/aaronjanse/3mux/pull/127
18 name = "darwin-go-1.18-fix.patch";
19 url = "https://github.com/aaronjanse/3mux/commit/91aed826c50f75a5175b63c72a1fb6a4ad57a008.patch";
20 sha256 = "sha256-MOPAyWAYYWrlCCgw1rBaNmHZO9oTIpIQwLJcs0aY/m8=";
24 nativeBuildInputs = [ makeWrapper ];
26 vendorSha256 = "sha256-qt8MYnvbZMuU1VwdSij6+x4N0r10c1R5Gcm+jDt76uc=";
28 # This is a package used for internally testing 3mux. It's meant for
29 # use by 3mux maintainers/contributors only.
30 excludedPackages = [ "fuzz" ];
32 # 3mux needs to have itself in the path so users can run `3mux detach`.
33 # This ensures that, while inside 3mux, the binary in the path is the
34 # same version as the 3mux hosting the session. This also allows users
35 # to use 3mux via `nix run nixpkgs#_3mux` (otherwise they'd get "command
38 wrapProgram $out/bin/3mux --prefix PATH : $out/bin
42 description = "Terminal multiplexer inspired by i3";
44 Terminal multiplexer with out-of-the-box support for search,
45 mouse-controlled scrollback, and i3-like keybindings
47 homepage = "https://github.com/aaronjanse/3mux";
48 license = licenses.mit;
49 maintainers = with maintainers; [ aaronjanse Br1ght0ne ];
50 platforms = platforms.unix;