2022-10-05 16:34:30 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, cmake
|
|
|
|
, libtool
|
|
|
|
, pkg-config
|
|
|
|
, zlib
|
|
|
|
, openssl
|
|
|
|
, libevent
|
|
|
|
, ncurses
|
|
|
|
, ruby
|
2023-06-27 13:13:40 +00:00
|
|
|
, msgpack-c
|
2022-10-05 16:34:30 +00:00
|
|
|
, libssh
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2019-10-04 13:01:38 +00:00
|
|
|
|
2023-06-27 13:13:40 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-10-04 13:01:38 +00:00
|
|
|
pname = "tmate-ssh-server";
|
2023-06-27 13:13:40 +00:00
|
|
|
version = "unstable-2023-06-02";
|
2019-10-04 13:01:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-10-05 16:34:30 +00:00
|
|
|
owner = "tmate-io";
|
|
|
|
repo = "tmate-ssh-server";
|
2023-06-27 13:13:40 +00:00
|
|
|
rev = "d7334ee4c3c8036c27fb35c7a24df3a88a15676b";
|
|
|
|
sha256 = "sha256-V3p0vagt13YjQPdqpbSatx5DnIEXL4t/kfxETSFYye0=";
|
2019-10-04 13:01:38 +00:00
|
|
|
};
|
|
|
|
|
2023-06-27 13:13:40 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac \
|
|
|
|
--replace 'msgpack >= 1.2.0' 'msgpack-c >= 1.2.0'
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
2019-10-04 13:01:38 +00:00
|
|
|
|
2023-06-27 13:13:40 +00:00
|
|
|
buildInputs = [
|
|
|
|
libtool
|
|
|
|
zlib
|
|
|
|
openssl
|
|
|
|
libevent
|
|
|
|
ncurses
|
|
|
|
ruby
|
|
|
|
msgpack-c
|
|
|
|
libssh
|
|
|
|
];
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
2019-10-04 13:01:38 +00:00
|
|
|
|
2022-10-05 16:34:30 +00:00
|
|
|
passthru.tests.tmate-ssh-server = nixosTests.tmate-ssh-server;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-10-05 16:34:30 +00:00
|
|
|
homepage = "https://tmate.io/";
|
2019-10-04 13:01:38 +00:00
|
|
|
description = "tmate SSH Server";
|
2022-10-05 16:34:30 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
2022-09-05 15:17:37 +00:00
|
|
|
maintainers = with maintainers; [ ck3d ];
|
2023-11-23 21:09:35 +00:00
|
|
|
mainProgram = "tmate-ssh-server";
|
2019-10-04 13:01:38 +00:00
|
|
|
};
|
|
|
|
}
|