nixpkgs/pkgs/tools/video/rtmpdump/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

2015-02-17 21:15:03 +00:00
{ stdenv, fetchgit, zlib
, gnutlsSupport ? false, gnutls ? null, nettle ? null
2015-05-01 22:37:10 +01:00
, opensslSupport ? true, openssl ? null
2015-02-17 21:15:03 +00:00
}:
# Must have an ssl library enabled
assert (gnutlsSupport || opensslSupport);
assert gnutlsSupport -> gnutlsSupport != null && nettle != null && !opensslSupport;
assert opensslSupport -> openssl != null && !gnutlsSupport;
2015-02-17 21:15:03 +00:00
with stdenv.lib;
stdenv.mkDerivation rec {
name = "rtmpdump-${version}";
2017-02-09 07:44:54 +00:00
version = "2015-12-30";
src = fetchgit {
url = git://git.ffmpeg.org/rtmpdump;
2015-02-17 21:15:03 +00:00
# Currently the latest commit is used (a release has not been made since 2011, i.e. '2.4')
2017-02-09 07:44:54 +00:00
rev = "fa8646daeb19dfd12c181f7d19de708d623704c0";
sha256 = "17m9rmnnqyyzsnnxcdl8258hjmw16nxbj1n1lr7fj3kmcs189iig";
};
2015-02-17 21:15:03 +00:00
makeFlags = [ ''prefix=$(out)'' ]
++ optional gnutlsSupport "CRYPTO=GNUTLS"
2015-04-03 01:46:09 +01:00
++ optional opensslSupport "CRYPTO=OPENSSL"
2015-04-03 18:53:54 +01:00
++ optional stdenv.isDarwin "SYS=darwin"
++ optional stdenv.cc.isClang "CC=clang";
propagatedBuildInputs = [ zlib ]
++ optionals gnutlsSupport [ gnutls nettle ]
2015-02-17 21:15:03 +00:00
++ optional opensslSupport openssl;
outputs = [ "out" "dev" ];
meta = {
description = "Toolkit for RTMP streams";
2015-02-17 21:15:03 +00:00
homepage = http://rtmpdump.mplayerhq.hu/;
license = licenses.gpl2;
2015-04-03 01:46:09 +01:00
platforms = platforms.unix;
2015-02-17 21:15:03 +00:00
maintainers = with maintainers; [ codyopel viric ];
};
}