16 stdenv.mkDerivation rec {
21 url = "https://www.libssh.org/files/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
22 sha256 = "sha256-tg4v9/Nnue7itWNNOmMwPd/t4OahjfyojESodw5+QjQ=";
25 # Do not split 'dev' output until lib/cmake/libssh/libssh-config.cmake
26 # is fixed to point INTERFACE_INCLUDE_DIRECTORIES to .dev output.
27 # Otherwise it breaks `plasma5Packages.kio-extras`:
28 # https://hydra.nixos.org/build/221540008/nixlog/3/tail
29 #outputs = [ "out" "dev" ];
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" ];
40 # single output, otherwise cmake and .pc files point to the wrong directory
41 # outputs = [ "out" "dev" ];
43 buildInputs = [ zlib openssl libsodium ];
45 nativeBuildInputs = [ cmake pkg-config ];
48 inherit ffmpeg sshping wireshark;
52 description = "SSH client library";
53 homepage = "https://libssh.org";
54 license = licenses.lgpl2Plus;
55 maintainers = with maintainers; [ sander ];
56 platforms = platforms.all;