nixpkgs/pkgs/development/libraries/srtp/default.nix
R. RyanTM 60a666507c srtp: 2.1.0 -> 2.2.0 (#40849)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/libsrtp/versions.

These checks were done:

- built on NixOS

- 0 of 0 passed binary check by having a zero exit code.
- 0 of 0 passed binary check by having the new version present in output.
- found 2.2.0 with grep in /nix/store/6zbhr84zjcsvn8rjngwyqlhy1592pbcm-libsrtp-2.2.0
- directory tree listing: https://gist.github.com/87b0811e10da29e42c97917be0858d86
- du listing: https://gist.github.com/2e969bdfee6739383f70f7509c074b3b
2018-05-22 02:01:49 +02:00

39 lines
851 B
Nix

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