2018-11-17 09:23:24 -08:00
|
|
|
{ stdenv, fetchurl, openssl, zlib, windows }:
|
2010-08-05 13:24:32 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-18 17:40:37 -07:00
|
|
|
pname = "libssh2";
|
2019-06-20 00:37:25 -07:00
|
|
|
version = "1.9.0";
|
2010-08-05 13:24:32 -07:00
|
|
|
|
2018-11-17 09:23:24 -08:00
|
|
|
src = fetchurl {
|
2019-03-18 17:40:37 -07:00
|
|
|
url = "${meta.homepage}/download/${pname}-${version}.tar.gz";
|
2019-06-20 00:37:25 -07:00
|
|
|
sha256 = "1zfsz9nldakfz61d2j70pk29zlmj7w2vv46s9l3x2prhcgaqpyym";
|
2010-08-05 13:24:32 -07:00
|
|
|
};
|
|
|
|
|
2016-09-01 02:07:23 -07:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2015-10-06 05:52:57 -07:00
|
|
|
|
2018-05-10 10:10:39 -07:00
|
|
|
buildInputs = [ openssl zlib ]
|
2018-08-20 11:43:41 -07:00
|
|
|
++ stdenv.lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64;
|
2015-11-06 07:02:12 -08:00
|
|
|
|
2020-02-10 07:39:24 -08:00
|
|
|
patches = [
|
|
|
|
# not able to use fetchpatch here: infinite recursion
|
|
|
|
(fetchurl {
|
|
|
|
name = "CVE-2019-17498.patch";
|
|
|
|
url = "https://github.com/libssh2/libssh2/pull/402.patch";
|
|
|
|
sha256 = "1n9s2mcz5dkw0xpm3c5x4hzj8bar4i6z0pr1rmqjplhfg888vdvc";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-10-11 03:12:54 -07:00
|
|
|
meta = with stdenv.lib; {
|
2010-08-05 13:24:32 -07:00
|
|
|
description = "A client-side C library implementing the SSH2 protocol";
|
2018-04-30 20:03:23 -07:00
|
|
|
homepage = https://www.libssh2.org;
|
2018-10-11 03:12:54 -07:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.bsd3;
|
2017-03-27 10:11:17 -07:00
|
|
|
maintainers = [ ];
|
2010-08-05 13:24:32 -07:00
|
|
|
};
|
|
|
|
}
|