git.iko.soy/typeable/nixpkgs
on master help sign in
wemux: init at 2021-04-16

The usual wemux.conf location is /usr/local/etc, but that directory doesn't exist, so we patch the script to look in /etc. Reviewed-by: William Casarin <jb55@jb55.com> Link: https://lists.sr.ht/~andir/nixpkgs-dev/%3C20210419002256.30999-1-ben@bsima.me%3E

commitb4a87f0ef014ebb5326b9b2974cf57b9d0404317 authorBen Sima <ben@bsima.me> dateSun 18 Apr 2021, 20:22 (6 years ago) parent2b34c2c
2 files changed+40
pkgs/tools/misc/wemux/default.nix+38 pkgs/top-level/all-packages.nix+2
pkgs/tools/misc/wemux/default.nixnew file+38
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -9221,6 +9221,8 @@ in
92219221
92229222 welkin = callPackage ../tools/graphics/welkin {};
92239223
9224+ wemux = callPackage ../tools/misc/wemux { };
9225+
92249226 wf-recorder = callPackage ../applications/video/wf-recorder { };
92259227
92269228 whipper = callPackage ../applications/audio/whipper { };