Files
nixpkgs/pkgs/by-name/tm/tmate-ssh-server/package.nix
2026-09-27 06:11:14 -03:00

65 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
cmake,
libtool,
pkg-config,
zlib,
openssl,
libevent,
ncurses,
ruby,
msgpack-c,
libssh,
nixosTests,
}:
stdenv.mkDerivation {
pname = "tmate-ssh-server";
version = "unstable-2023-06-02";
src = fetchFromGitHub {
owner = "tmate-io";
repo = "tmate-ssh-server";
rev = "d7334ee4c3c8036c27fb35c7a24df3a88a15676b";
sha256 = "sha256-V3p0vagt13YjQPdqpbSatx5DnIEXL4t/kfxETSFYye0=";
};
postPatch = ''
substituteInPlace configure.ac \
--replace 'msgpack >= 1.2.0' 'msgpack-c >= 1.2.0'
'';
nativeBuildInputs = [
autoreconfHook
cmake
pkg-config
];
buildInputs = [
libtool
zlib
openssl
libevent
ncurses
ruby
msgpack-c
libssh
];
dontUseCmakeConfigure = true;
passthru.tests.tmate-ssh-server = nixosTests.tmate-ssh-server;
meta = {
homepage = "https://github.com/tmate-io/tmate-ssh-server";
description = "tmate SSH Server";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ ck3d ];
mainProgram = "tmate-ssh-server";
};
}