Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 28 lines 739 B view raw
1{ stdenv, fetchurl, pkgconfig, cmake, zlib, openssl, libsodium }: 2 3stdenv.mkDerivation rec { 4 name = "libssh-0.7.6"; 5 6 src = fetchurl { 7 url = "https://www.libssh.org/files/0.7/libssh-0.7.6.tar.xz"; 8 sha256 = "14hhdpn2hflywsi9d5bz2pfjxqkyi07znjij89cpakr7b4w7sq0x"; 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}