at 16.09-beta 755 B view raw
1{ stdenv, fetchurl, pkgconfig, cmake, zlib, openssl, libsodium }: 2 3stdenv.mkDerivation rec { 4 name = "libssh-0.7.3"; 5 6 src = fetchurl { 7 url = "https://red.libssh.org/attachments/download/195/${name}.tar.xz"; 8 sha256 = "165g49i4kmm3bfsjm0n8hm21kadv79g9yjqyq09138jxanz4dvr6"; 9 }; 10 11 postPatch = '' 12 # Fix headers to use libsodium instead of NaCl 13 sed -i 's,nacl/,sodium/,g' ./include/libssh/curve25519.h src/curve25519.c 14 ''; 15 16 outputs = [ "out" "dev" ]; 17 18 buildInputs = [ zlib openssl libsodium ]; 19 20 nativeBuildInputs = [ cmake pkgconfig ]; 21 22 meta = with stdenv.lib; { 23 description = "SSH client library"; 24 license = licenses.lgpl2Plus; 25 maintainers = with maintainers; [ sander urkud ]; 26 platforms = platforms.all; 27 }; 28}