nixpkgs/pkgs/servers/tmate-ssh-server/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.1 KiB
Nix
Raw Normal View History

{ 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 = with lib; {
homepage = "https://tmate.io/";
description = "tmate SSH Server";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ ck3d ];
2023-11-23 21:09:35 +00:00
mainProgram = "tmate-ssh-server";
};
}