Revert "srtp: support cross, switch to cmake, enable tests"

Breaks gstreamer-bad as discussed in #131986.

This reverts commit e4ade0952a.
This commit is contained in:
Dmitry Kalinkin 2021-08-27 21:02:48 -04:00
parent b7f2a7d1ba
commit 053e6bf855
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, pkg-config
, openssl, libpcap, cmake
, openssl ? null, libpcap ? null
}:
with lib;
@ -16,26 +16,21 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkg-config cmake ];
nativeBuildInputs = [ pkg-config ];
# libsrtp.pc references -lcrypto -lpcap without -L
propagatedBuildInputs = [ openssl libpcap ];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DENABLE_OPENSSL=ON"
"-DBUILD_TESTING=ON"
];
configureFlags = [
"--disable-debug"
] ++ optional (openssl != null) "--enable-openssl";
buildFlags = [ "shared_library" ];
postInstall = ''
rm -rf $out/bin
'';
doCheck = true;
preCheck = ''
export LD_PRELOAD=./libsrtp2.so
'';
meta = {
homepage = "https://github.com/cisco/libsrtp";
description = "Secure RTP (SRTP) Reference Implementation";