Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, glib, openssl, pkg-config, autoreconfHook, SystemConfiguration }: 2 3stdenv.mkDerivation rec { 4 pname = "sofia-sip"; 5 version = "1.13.15"; 6 7 src = fetchFromGitHub { 8 owner = "freeswitch"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-mDcXr9JPYtuz2EtonoeuimH1VsEKbNr/Q0gs+a7azTU="; 12 }; 13 14 buildInputs = [ glib openssl ] ++ lib.optional stdenv.isDarwin SystemConfiguration; 15 nativeBuildInputs = [ autoreconfHook pkg-config ]; 16 17 meta = with lib; { 18 description = "Open-source SIP User-Agent library, compliant with the IETF RFC3261 specification"; 19 homepage = "https://github.com/freeswitch/sofia-sip"; 20 platforms = platforms.unix; 21 license = licenses.lgpl2; 22 }; 23}