@@ -0,0 +1,38 @@
1+{ stdenv, lib, fetchFromGitHub, tmux, installShellFiles }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "wemux";
5+ version = "unstable-2021-04-16";
6+
7+ src = fetchFromGitHub {
8+ owner = "zolrath";
9+ repo = "wemux";
10+ rev = "01c6541f8deceff372711241db2a13f21c4b210c";
11+ sha256 = "1y962nzvs7sf720pl3wa582l6irxc8vavd0gp4ag4243b2gs4qvm";
12+ };
13+
14+ nativeBuildInputs = [ installShellFiles ];
15+
16+ installPhase = ''
17+ runHook preInstall
18+
19+ substituteInPlace wemux \
20+ --replace tmux ${tmux}/bin/tmux \
21+ --replace "/usr/local/etc" "/etc"
22+
23+ substituteInPlace man/wemux.1 --replace "/usr/local/etc" "/etc"
24+
25+ install -Dm755 wemux -t $out/bin
26+ installManPage man/wemux.1
27+
28+ runHook postInstall
29+ '';
30+
31+ meta = with lib; {
32+ homepage = "https://github.com/zolrath/wemux";
33+ description = "Multi-user tmux made easy";
34+ license = licenses.mit;
35+ platforms = platforms.all;
36+ maintainers = with maintainers; [ bsima ];
37+ };
38+}