Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libssh2 / default.nix
blob091885a1f084ad7f574cd66cb9db719d5ee8ec5a
1 { lib, stdenv, fetchurl, openssl, zlib, windows }:
3 stdenv.mkDerivation rec {
4   pname = "libssh2";
5   version = "1.11.0";
7   src = fetchurl {
8     url = "https://www.libssh2.org/download/libssh2-${version}.tar.gz";
9     sha256 = "sha256-NzYWHkHiaTMk3rOMJs/cPv5iCdY0ukJY2xzs/2pa1GE=";
10   };
12   outputs = [ "out" "dev" "devdoc" ];
14   propagatedBuildInputs = [ openssl ]; # see Libs: in libssh2.pc
15   buildInputs = [ zlib ]
16     ++ lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64;
18   meta = with lib; {
19     description = "A client-side C library implementing the SSH2 protocol";
20     homepage = "https://www.libssh2.org";
21     platforms = platforms.all;
22     license = with licenses; [ bsd3 libssh2 ];
23     maintainers = with maintainers; [ SuperSandro2000 ];
24   };