17 stdenv.mkDerivation rec {
22 url = "https://www.libssh2.org/download/libssh2-${version}.tar.gz";
23 hash = "sha256-2ex2y+NNuY7sNTn+LImdJrDIN8s+tGalaw8QnKv2WPc=";
26 # this could be accomplished by updateAutotoolsGnuConfigScriptsHook, but that causes infinite recursion
27 # necessary for FreeBSD code path in configure
29 substituteInPlace ./config.guess --replace-fail /usr/bin/uname uname
38 propagatedBuildInputs = [ openssl ]; # see Libs: in libssh2.pc
39 buildInputs = [ zlib ] ++ lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64;
48 curl = (curl.override { scpSupport = true; }).tests.withCheck;
52 description = "Client-side C library implementing the SSH2 protocol";
53 homepage = "https://www.libssh2.org";
54 platforms = platforms.all;
55 license = with licenses; [ bsd3 ];
56 maintainers = with maintainers; [ SuperSandro2000 ];