Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 28 lines 746 B view raw
1{ stdenv, fetchurl, fetchpatch, pkgconfig, cmake, zlib, openssl, libsodium }: 2 3stdenv.mkDerivation rec { 4 name = "libssh-0.8.5"; 5 6 src = fetchurl { 7 url = "https://www.libssh.org/files/0.8/${name}.tar.xz"; 8 sha256 = "0dd3nmd20jw4z116qbz3wbffxbzrczi6mcxw0rmqzj0g4hqw9lh7"; 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 ]; 26 platforms = platforms.all; 27 }; 28}