python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libssh2 / default.nix
blobce496637fcc20c7f87c9d36667d25581987f7119
1 { lib, stdenv, fetchurl, openssl, zlib, windows }:
3 stdenv.mkDerivation rec {
4   pname = "libssh2";
5   version = "1.10.0";
7   src = fetchurl {
8     url = "https://www.libssh2.org/download/libssh2-${version}.tar.gz";
9     sha256 = "sha256-LWTpDz3tOUuR06LndMogOkF59prr7gMAPlpvpiHkHVE=";
10   };
12   outputs = [ "out" "dev" "devdoc" ];
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   ];
20   buildInputs = [ openssl zlib ]
21     ++ lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64;
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   };