2021-08-28 02:43:11 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libpcap
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
2015-04-06 22:44:42 +01:00
|
|
|
}:
|
2010-09-06 00:37:54 +01:00
|
|
|
|
2015-04-06 22:44:42 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libsrtp";
|
2021-10-09 00:13:14 +01:00
|
|
|
version = "2.4.2";
|
2015-04-06 22:44:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cisco";
|
|
|
|
repo = "libsrtp";
|
|
|
|
rev = "v${version}";
|
2021-10-09 00:13:14 +01:00
|
|
|
sha256 = "sha256-6FAkfxC7Tg7uIAmTmRt5Sn8/YofILfpe7Y4pSaq8XL8=";
|
2010-09-06 00:37:54 +01:00
|
|
|
};
|
|
|
|
|
2019-09-25 16:58:30 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2021-08-28 02:43:11 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libpcap
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
|
|
|
|
# rtpw tests hang
|
|
|
|
preConfigure = ''
|
|
|
|
rm test/rtpw_test.sh \
|
|
|
|
test/rtpw_test_gcm.sh
|
|
|
|
'';
|
2012-09-24 18:02:19 +01:00
|
|
|
|
2021-08-28 02:43:11 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dcrypto-library=openssl"
|
|
|
|
"-Dcrypto-library-kdf=disabled"
|
|
|
|
"-Ddoc=disabled"
|
|
|
|
"-Dtests=${if doCheck then "enabled" else "disabled"}"
|
|
|
|
];
|
2017-03-22 18:49:41 +00:00
|
|
|
|
2021-08-28 02:43:11 +01:00
|
|
|
doCheck = true;
|
2012-09-24 18:02:19 +01:00
|
|
|
|
2021-08-28 02:43:11 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/cisco/libsrtp";
|
2015-04-06 22:44:42 +01:00
|
|
|
description = "Secure RTP (SRTP) Reference Implementation";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
2021-08-28 02:43:11 +01:00
|
|
|
maintainers = with maintainers; [ r-burns ];
|
2010-09-06 00:37:54 +01:00
|
|
|
};
|
2015-04-06 22:44:42 +01:00
|
|
|
}
|