git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #116272 from aaronjanse/mar2021-update-3mux
commitb91fa69ed0d12bef0451bab5fd71be0c10804f25 authorSandro <sandro.jaeckel@gmail.com> dateSun 14 Mar 2021, 06:33 (6 years ago) parente9022846596d10
1 file changed+21−7
pkgs/tools/misc/3mux/default.nix+21−7
pkgs/tools/misc/3mux/default.nix+21−7
@@ -1,24 +1,38 @@
1−{ lib, buildGoModule, fetchFromGitHub }:
1+{ lib, buildGoModule, fetchFromGitHub, makeWrapper }:
22
33buildGoModule rec {
44 pname = "3mux";
5− version = "1.0.1";
5+ version = "1.1.0";
66
77 src = fetchFromGitHub {
88 owner = "aaronjanse";
99 repo = pname;
1010 rev = "v${version}";
11− sha256 = "sha256-auEMG3txO2JS/2dMFBtEujv9s5I0A80Vwts5kXjH600=";
11+ sha256 = "sha256-QT4QXTlJf2NfTqXE4GF759EoW6Ri12lxDyodyEFc+ag=";
1212 };
1313
14− vendorSha256 = "sha256-rcbnyScD2GU1DLY6dTEPgFNXZfgkxXPn5lt6HRqa0d8=";
14+ nativeBuildInputs = [ makeWrapper ];
15+
16+ vendorSha256 = "sha256-tbziQZIA1+b+ZtvA/865c8YQxn+r8HQy6Pqaac2kwcU=";
17+
18+ # This is a package used for internally testing 3mux. It's meant for
19+ # use by 3mux maintainers/contributors only.
20+ excludedPackages = [ "fuzz" ];
21+
22+ # 3mux needs to have itself in the path so users can run `3mux detach`.
23+ # This ensures that, while inside 3mux, the binary in the path is the
24+ # same version as the 3mux hosting the session. This also allows users
25+ # to use 3mux via `nix run nixpkgs#_3mux` (otherwise they'd get "command
26+ # not found").
27+ postInstall = ''
28+ wrapProgram $out/bin/3mux --prefix PATH : $out/bin
29+ '';
1530
1631 meta = with lib; {
1732 description = "Terminal multiplexer inspired by i3";
1833 longDescription = ''
19− 3mux is a terminal multiplexer with out-of-the-box support for search,
20− mouse-controlled scrollback, and i3-like keybindings. Imagine tmux with a
21− smaller learning curve and more sane defaults.
34+ Terminal multiplexer with out-of-the-box support for search,
35+ mouse-controlled scrollback, and i3-like keybindings
2236 '';
2337 homepage = "https://github.com/aaronjanse/3mux";
2438 license = licenses.mit;