summary refs log tree commit diff
path: root/pkgs/tools/misc/tmate/default.nix
blob: 881c9f1c54f831c166cb40258ca8403c0b6e907c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, fetchFromGitHub, autoconf, automake110x, libtool, pkgconfig, zlib, openssl, libevent, ncurses, cmake, ruby }:

stdenv.mkDerivation rec {
  name = "tmate-${version}";
  version = "1.8.10";

  src = fetchFromGitHub {
    owner  = "nviennot";
    repo   = "tmate";
    rev    = version;
    sha256 = "1bd9mi8fx40608zlady9dbv21kbdwc3kqrgz012m529f6cbysmzc";
  };

  buildInputs = [ autoconf automake110x pkgconfig libtool zlib openssl libevent ncurses cmake ruby ];

  dontUseCmakeConfigure=true;

  preConfigure = "./autogen.sh";

  postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
    substituteInPlace msgpack/bootstrap --replace glibtoolize libtoolize
  '';

  meta = {
    homepage = http://tmate.io/;
    description = "Instant Terminal Sharing";
    license = stdenv.lib.licenses.mit;
    platforms = stdenv.lib.platforms.unix;
    maintainers = with stdenv.lib.maintainers; [ DamienCassou ];
  };
}