2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, openssl, zlib, windows }:
|
2010-08-05 20:24:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-19 00:40:37 +00:00
|
|
|
pname = "libssh2";
|
2019-06-20 07:37:25 +00:00
|
|
|
version = "1.9.0";
|
2010-08-05 20:24:32 +00:00
|
|
|
|
2018-11-17 17:23:24 +00:00
|
|
|
src = fetchurl {
|
2019-03-19 00:40:37 +00:00
|
|
|
url = "${meta.homepage}/download/${pname}-${version}.tar.gz";
|
2019-06-20 07:37:25 +00:00
|
|
|
sha256 = "1zfsz9nldakfz61d2j70pk29zlmj7w2vv46s9l3x2prhcgaqpyym";
|
2010-08-05 20:24:32 +00:00
|
|
|
};
|
|
|
|
|
2016-09-01 09:07:23 +00:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2015-10-06 12:52:57 +00:00
|
|
|
|
2018-05-10 17:10:39 +00: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
|
|
|
|
2020-02-10 15:39:24 +00:00
|
|
|
patches = [
|
2020-06-01 20:53:32 +00:00
|
|
|
# Not able to use fetchpatch here: infinite recursion
|
|
|
|
./CVE-2019-17498.patch
|
2020-02-10 15:39:24 +00:00
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2010-08-05 20:24:32 +00:00
|
|
|
description = "A client-side C library implementing the SSH2 protocol";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.libssh2.org";
|
2018-10-11 10:12:54 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.bsd3;
|
2017-03-27 17:11:17 +00:00
|
|
|
maintainers = [ ];
|
2010-08-05 20:24:32 +00:00
|
|
|
};
|
|
|
|
}
|