mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
d6f54b0dea
Note that this is unrelated to the security vulnerability in earlier versions, which is already fixed in 0.7.6.
29 lines
746 B
Nix
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;
|
|
};
|
|
}
|