2022-10-06 18:32:54 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, cmake
|
|
|
|
, libtool
|
|
|
|
, pkg-config
|
|
|
|
, zlib
|
|
|
|
, openssl
|
|
|
|
, libevent
|
|
|
|
, ncurses
|
|
|
|
, ruby
|
2023-07-15 17:15:38 +00:00
|
|
|
, msgpack-c
|
2022-10-06 18:32:54 +00:00
|
|
|
, libssh
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
stdenv.mkDerivation {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "tmate-ssh-server";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "unstable-2023-06-02";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-10-06 18:32:54 +00:00
|
|
|
owner = "tmate-io";
|
|
|
|
repo = "tmate-ssh-server";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "d7334ee4c3c8036c27fb35c7a24df3a88a15676b";
|
|
|
|
sha256 = "sha256-V3p0vagt13YjQPdqpbSatx5DnIEXL4t/kfxETSFYye0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac \
|
|
|
|
--replace 'msgpack >= 1.2.0' 'msgpack-c >= 1.2.0'
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
buildInputs = [
|
|
|
|
libtool
|
|
|
|
zlib
|
|
|
|
openssl
|
|
|
|
libevent
|
|
|
|
ncurses
|
|
|
|
ruby
|
|
|
|
msgpack-c
|
|
|
|
libssh
|
|
|
|
];
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
passthru.tests.tmate-ssh-server = nixosTests.tmate-ssh-server;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-10-06 18:32:54 +00:00
|
|
|
homepage = "https://tmate.io/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "tmate SSH Server";
|
2022-10-06 18:32:54 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
2022-09-09 14:08:57 +00:00
|
|
|
maintainers = with maintainers; [ ck3d ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "tmate-ssh-server";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|