Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 cmake, 7 libtool, 8 pkg-config, 9 zlib, 10 openssl, 11 libevent, 12 ncurses, 13 ruby, 14 msgpack-c, 15 libssh, 16 nixosTests, 17}: 18 19stdenv.mkDerivation { 20 pname = "tmate-ssh-server"; 21 version = "unstable-2023-06-02"; 22 23 src = fetchFromGitHub { 24 owner = "tmate-io"; 25 repo = "tmate-ssh-server"; 26 rev = "d7334ee4c3c8036c27fb35c7a24df3a88a15676b"; 27 sha256 = "sha256-V3p0vagt13YjQPdqpbSatx5DnIEXL4t/kfxETSFYye0="; 28 }; 29 30 postPatch = '' 31 substituteInPlace configure.ac \ 32 --replace 'msgpack >= 1.2.0' 'msgpack-c >= 1.2.0' 33 ''; 34 35 nativeBuildInputs = [ 36 autoreconfHook 37 cmake 38 pkg-config 39 ]; 40 41 buildInputs = [ 42 libtool 43 zlib 44 openssl 45 libevent 46 ncurses 47 ruby 48 msgpack-c 49 libssh 50 ]; 51 52 dontUseCmakeConfigure = true; 53 54 passthru.tests.tmate-ssh-server = nixosTests.tmate-ssh-server; 55 56 meta = with lib; { 57 homepage = "https://tmate.io/"; 58 description = "tmate SSH Server"; 59 license = licenses.mit; 60 platforms = platforms.unix; 61 maintainers = with maintainers; [ ck3d ]; 62 mainProgram = "tmate-ssh-server"; 63 }; 64}