1 { lib, stdenv, fetchurl, openssl, zlib, windows }:
3 stdenv.mkDerivation rec {
8 url = "https://www.libssh2.org/download/libssh2-${version}.tar.gz";
9 sha256 = "sha256-LWTpDz3tOUuR06LndMogOkF59prr7gMAPlpvpiHkHVE=";
12 outputs = [ "out" "dev" "devdoc" ];
15 # https://github.com/libssh2/libssh2/pull/700
16 # openssl: add support for LibreSSL 3.5.x
17 ./openssl_add_support_for_libressl_3_5.patch
20 buildInputs = [ openssl zlib ]
21 ++ lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64;
24 description = "A client-side C library implementing the SSH2 protocol";
25 homepage = "https://www.libssh2.org";
26 platforms = platforms.all;
27 license = with licenses; [ bsd3 libssh2 ];
28 maintainers = with maintainers; [ SuperSandro2000 ];