17 stdenv.mkDerivation rec {
22 url = "https://www.libssh.org/files/${lib.versions.majorMinor version}/libssh-${version}.tar.xz";
23 hash = "sha256-FLfcxy6R4IFRxYuYGntXCrJmP2MOfSg3ZF1anGEsG3k=";
32 # Fix headers to use libsodium instead of NaCl
33 sed -i 's,nacl/,sodium/,g' ./include/libssh/curve25519.h src/curve25519.c
36 # Don’t build examples, which are not installed and require additional dependencies not
37 # included in `buildInputs` such as libX11.
38 cmakeFlags = [ "-DWITH_EXAMPLES=OFF" ];
52 substituteInPlace $dev/lib/cmake/libssh/libssh-config.cmake \
53 --replace-fail "set(_IMPORT_PREFIX \"$out\")" "set(_IMPORT_PREFIX \"$dev\")"
57 inherit ffmpeg sshping wireshark;
61 description = "SSH client library";
62 homepage = "https://libssh.org";
63 license = licenses.lgpl2Plus;
64 maintainers = with maintainers; [ sander ];
65 platforms = platforms.all;