Merge pull request #240121 from NickCao/tmate-msgpack

tmate, tmate-ssh-server: update and use msgpack-c instead of msgpack
This commit is contained in:
Christian Kögler 2023-06-28 08:39:52 +02:00 committed by GitHub
commit 934a291b5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 66 additions and 14 deletions

View File

@ -24,6 +24,7 @@ in
services.tmate-ssh-server = {
enable = true;
port = 2223;
openFirewall = true;
};
};
client = { ... }: {

View File

@ -10,26 +10,45 @@
, libevent
, ncurses
, ruby
, msgpack
, msgpack-c
, libssh
, nixosTests
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation {
pname = "tmate-ssh-server";
version = "unstable-2021-10-17";
version = "unstable-2023-06-02";
src = fetchFromGitHub {
owner = "tmate-io";
repo = "tmate-ssh-server";
rev = "1f314123df2bb29cb07427ed8663a81c8d9034fd";
sha256 = "sha256-9/xlMvtkNWUBRYYnJx20qEgtEcjagH2NtEKZcDOM1BY=";
rev = "d7334ee4c3c8036c27fb35c7a24df3a88a15676b";
sha256 = "sha256-V3p0vagt13YjQPdqpbSatx5DnIEXL4t/kfxETSFYye0=";
};
dontUseCmakeConfigure = true;
postPatch = ''
substituteInPlace configure.ac \
--replace 'msgpack >= 1.2.0' 'msgpack-c >= 1.2.0'
'';
buildInputs = [ libtool zlib openssl libevent ncurses ruby msgpack libssh ];
nativeBuildInputs = [ autoreconfHook cmake pkg-config ];
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;

View File

@ -1,7 +1,20 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, cmake, libtool, pkg-config
, zlib, openssl, libevent, ncurses, ruby, msgpack, libssh }:
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, cmake
, libtool
, pkg-config
, zlib
, openssl
, libevent
, ncurses
, ruby
, msgpack-c
, libssh
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation {
pname = "tmate";
version = "unstable-2022-08-07";
@ -12,10 +25,29 @@ stdenv.mkDerivation rec {
sha256 = "sha256-t96gfmAMcsjkGf8pvbEx2fNx4Sj3W6oYoQswB3Dklb8=";
};
dontUseCmakeConfigure = true;
postPatch = ''
substituteInPlace configure.ac \
--replace 'msgpack >= 1.1.0' 'msgpack-c >= 1.1.0'
'';
buildInputs = [ libtool zlib openssl libevent ncurses ruby msgpack libssh ];
nativeBuildInputs = [ autoreconfHook cmake pkg-config ];
nativeBuildInputs = [
autoreconfHook
cmake
pkg-config
];
buildInputs = [
libtool
zlib
openssl
libevent
ncurses
ruby
msgpack-c
libssh
];
dontUseCmakeConfigure = true;
meta = with lib; {
homepage = "https://tmate.io/";