nixpkgs/pkgs/development/libraries/srtp/default.nix

39 lines
851 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pkgconfig
, openssl ? null, libpcap ? null
}:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "libsrtp-${version}";
version = "2.1.0";
src = fetchFromGitHub {
owner = "cisco";
repo = "libsrtp";
rev = "v${version}";
sha256 = "1q2rf1d2bsypdnw9k8ag6hrh9vbinfa504d1f42fdgdqw31d6lib";
};
nativeBuildInputs = [ pkgconfig ];
# libsrtp.pc references -lcrypto -lpcap without -L
propagatedBuildInputs = [ openssl libpcap ];
configureFlags = [
"--disable-debug"
] ++ optional (openssl != null) "--enable-openssl";
2012-09-24 21:02:19 +04:00
2017-03-22 21:49:41 +03:00
buildFlags = [ "shared_library" ];
postInstall = ''
rm -rf $out/bin
'';
2012-09-24 21:02:19 +04:00
meta = {
homepage = https://github.com/cisco/libsrtp;
description = "Secure RTP (SRTP) Reference Implementation";
license = licenses.bsd3;
platforms = platforms.all;
};
}