Unbork journals audit logs and introduce audit option (#379629)
[NixPkgs.git] / pkgs / by-name / we / wemux / package.nix
blobaf160816c27f001cb0bc0d0b10c4a55596ecca92
2   stdenv,
3   lib,
4   fetchFromGitHub,
5   tmux,
6   installShellFiles,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "wemux";
11   version = "unstable-2021-04-16";
13   src = fetchFromGitHub {
14     owner = "zolrath";
15     repo = "wemux";
16     rev = "01c6541f8deceff372711241db2a13f21c4b210c";
17     sha256 = "1y962nzvs7sf720pl3wa582l6irxc8vavd0gp4ag4243b2gs4qvm";
18   };
20   nativeBuildInputs = [ installShellFiles ];
22   installPhase = ''
23     runHook preInstall
25     substituteInPlace wemux \
26         --replace tmux ${tmux}/bin/tmux \
27         --replace "/usr/local/etc" "/etc"
29     substituteInPlace man/wemux.1 --replace "/usr/local/etc" "/etc"
31     install -Dm755 wemux -t $out/bin
32     installManPage man/wemux.1
34     runHook postInstall
35   '';
37   meta = with lib; {
38     homepage = "https://github.com/zolrath/wemux";
39     description = "Multi-user tmux made easy";
40     license = licenses.mit;
41     platforms = platforms.all;
42     maintainers = with maintainers; [ bsima ];
43     mainProgram = "wemux";
44   };