Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 29 lines 764 B view raw
1{ stdenv, fetchurl, openssl, zlib, windows }: 2 3stdenv.mkDerivation rec { 4 pname = "libssh2"; 5 version = "1.9.0"; 6 7 src = fetchurl { 8 url = "${meta.homepage}/download/${pname}-${version}.tar.gz"; 9 sha256 = "1zfsz9nldakfz61d2j70pk29zlmj7w2vv46s9l3x2prhcgaqpyym"; 10 }; 11 12 outputs = [ "out" "dev" "devdoc" ]; 13 14 buildInputs = [ openssl zlib ] 15 ++ stdenv.lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64; 16 17 patches = [ 18 # Not able to use fetchpatch here: infinite recursion 19 ./CVE-2019-17498.patch 20 ]; 21 22 meta = with stdenv.lib; { 23 description = "A client-side C library implementing the SSH2 protocol"; 24 homepage = "https://www.libssh2.org"; 25 platforms = platforms.all; 26 license = licenses.bsd3; 27 maintainers = [ ]; 28 }; 29}