16 stdenv.mkDerivation rec {
21 url = "https://www.libssh2.org/download/libssh2-${version}.tar.gz";
22 hash = "sha256-2ex2y+NNuY7sNTn+LImdJrDIN8s+tGalaw8QnKv2WPc=";
25 # this could be accomplished by updateAutotoolsGnuConfigScriptsHook, but that causes infinite recursion
26 # necessary for FreeBSD code path in configure
28 substituteInPlace ./config.guess --replace-fail /usr/bin/uname uname
31 outputs = [ "out" "dev" "devdoc" ];
33 propagatedBuildInputs = [ openssl ]; # see Libs: in libssh2.pc
34 buildInputs = [ zlib ]
35 ++ lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64;
38 inherit aria2 libgit2 mc vlc;
39 curl = (curl.override { scpSupport = true; }).tests.withCheck;
43 description = "Client-side C library implementing the SSH2 protocol";
44 homepage = "https://www.libssh2.org";
45 platforms = platforms.all;
46 license = with licenses; [ bsd3 ];
47 maintainers = with maintainers; [ SuperSandro2000 ];