nixpkgs/pkgs/development/libraries/libssh/default.nix
Linus Heckemann d6f54b0dea libssh: 0.7.6 -> 0.8.4
Note that this is unrelated to the security vulnerability in earlier
versions, which is already fixed in 0.7.6.
2018-10-21 08:42:03 +02:00

29 lines
746 B
Nix

{ stdenv, fetchurl, fetchpatch, pkgconfig, cmake, zlib, openssl, libsodium }:
stdenv.mkDerivation rec {
name = "libssh-0.8.4";
src = fetchurl {
url = "https://www.libssh.org/files/0.8/${name}.tar.xz";
sha256 = "06xqfm1alfb6faqzjhyhjs0arjcd8rnc7ci046x8d18s089pgc3b";
};
postPatch = ''
# Fix headers to use libsodium instead of NaCl
sed -i 's,nacl/,sodium/,g' ./include/libssh/curve25519.h src/curve25519.c
'';
outputs = [ "out" "dev" ];
buildInputs = [ zlib openssl libsodium ];
nativeBuildInputs = [ cmake pkgconfig ];
meta = with stdenv.lib; {
description = "SSH client library";
license = licenses.lgpl2Plus;
maintainers = with maintainers; [ sander ];
platforms = platforms.all;
};
}