Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, zlib, openssl 2, cmake }: 3 4stdenv.mkDerivation rec { 5 version = "2.9.0"; 6 pname = "libre"; 7 src = fetchFromGitHub { 8 owner = "baresip"; 9 repo = "re"; 10 rev = "v${version}"; 11 sha256 = "sha256-YNAfHmohMqGGF8N/VdndJJ32PF/GMBoNtjo/t2lt6HA="; 12 }; 13 buildInputs = [ zlib openssl ]; 14 nativeBuildInputs = [ cmake ]; 15 makeFlags = [ "USE_ZLIB=1" "USE_OPENSSL=1" "PREFIX=$(out)" ] 16 ++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}" 17 ++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${lib.getDev stdenv.cc.libc}" 18 ; 19 enableParallelBuilding = true; 20 meta = { 21 description = "A library for real-time communications with async IO support and a complete SIP stack"; 22 homepage = "https://github.com/baresip/re"; 23 maintainers = with lib.maintainers; [ elohmeier raskin ]; 24 license = lib.licenses.bsd3; 25 }; 26}