at 22.05-pre 24 lines 690 B view raw
1{ lib, stdenv, fetchurl, openssl, zlib, windows }: 2 3stdenv.mkDerivation rec { 4 pname = "libssh2"; 5 version = "1.10.0"; 6 7 src = fetchurl { 8 url = "https://www.libssh2.org/download/libssh2-${version}.tar.gz"; 9 sha256 = "sha256-LWTpDz3tOUuR06LndMogOkF59prr7gMAPlpvpiHkHVE="; 10 }; 11 12 outputs = [ "out" "dev" "devdoc" ]; 13 14 buildInputs = [ openssl zlib ] 15 ++ lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64; 16 17 meta = with lib; { 18 description = "A client-side C library implementing the SSH2 protocol"; 19 homepage = "https://www.libssh2.org"; 20 platforms = platforms.all; 21 license = licenses.bsd3; 22 maintainers = with maintainers; [ SuperSandro2000 ]; 23 }; 24}