2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, openssl, zlib, windows }:
|
2010-08-05 21:24:32 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-19 00:40:37 +00:00
|
|
|
pname = "libssh2";
|
2021-09-05 19:45:49 +01:00
|
|
|
version = "1.10.0";
|
2010-08-05 21:24:32 +01:00
|
|
|
|
2018-11-17 17:23:24 +00:00
|
|
|
src = fetchurl {
|
2021-09-05 19:45:49 +01:00
|
|
|
url = "https://www.libssh2.org/download/libssh2-${version}.tar.gz";
|
|
|
|
sha256 = "sha256-LWTpDz3tOUuR06LndMogOkF59prr7gMAPlpvpiHkHVE=";
|
2010-08-05 21:24:32 +01:00
|
|
|
};
|
|
|
|
|
2016-09-01 10:07:23 +01:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2015-10-06 13:52:57 +01:00
|
|
|
|
2018-05-10 18:10:39 +01:00
|
|
|
buildInputs = [ openssl zlib ]
|
2021-01-21 17:00:13 +00:00
|
|
|
++ lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64;
|
2015-11-06 15:02:12 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2010-08-05 21:24:32 +01:00
|
|
|
description = "A client-side C library implementing the SSH2 protocol";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.libssh2.org";
|
2018-10-11 11:12:54 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.bsd3;
|
2021-09-05 19:45:49 +01:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2010-08-05 21:24:32 +01:00
|
|
|
};
|
|
|
|
}
|