Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 30 lines 873 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 patches = [ 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 18 ]; 19 20 buildInputs = [ openssl zlib ] 21 ++ lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64; 22 23 meta = with lib; { 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 ]; 29 }; 30}