lol
1{ lib
2, stdenv
3, fetchFromGitHub
4, autoreconfHook
5, cmake
6, libtool
7, pkg-config
8, zlib
9, openssl
10, libevent
11, ncurses
12, ruby
13, msgpack-c
14, libssh
15}:
16
17stdenv.mkDerivation {
18 pname = "tmate";
19 version = "unstable-2022-08-07";
20
21 src = fetchFromGitHub {
22 owner = "tmate-io";
23 repo = "tmate";
24 rev = "ac919516f4f1b10ec928e20b3a5034d18f609d68";
25 sha256 = "sha256-t96gfmAMcsjkGf8pvbEx2fNx4Sj3W6oYoQswB3Dklb8=";
26 };
27
28 postPatch = ''
29 substituteInPlace configure.ac \
30 --replace 'msgpack >= 1.1.0' 'msgpack-c >= 1.1.0'
31 '';
32
33 nativeBuildInputs = [
34 autoreconfHook
35 cmake
36 pkg-config
37 ];
38
39 buildInputs = [
40 libtool
41 zlib
42 openssl
43 libevent
44 ncurses
45 ruby
46 msgpack-c
47 libssh
48 ];
49
50 dontUseCmakeConfigure = true;
51
52 meta = with lib; {
53 homepage = "https://tmate.io/";
54 description = "Instant Terminal Sharing";
55 license = licenses.mit;
56 platforms = platforms.unix;
57 maintainers = with maintainers; [ ck3d ];
58 mainProgram = "tmate";
59 };
60}