mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
rtmpdump: refactor & bump commit
This commit is contained in:
parent
6be3ffb0d4
commit
25c9b84994
@ -1,26 +1,38 @@
|
|||||||
{stdenv, fetchgit, zlib, gnutls, libgcrypt}:
|
{ stdenv, fetchgit, zlib
|
||||||
|
, gnutlsSupport ? true, gnutls ? null
|
||||||
|
, opensslSupport ? false, openssl ? null
|
||||||
|
}:
|
||||||
|
|
||||||
|
# Must have an ssl library enabled
|
||||||
|
assert (gnutlsSupport || opensslSupport);
|
||||||
|
assert gnutlsSupport -> ((gnutlsSupport != null) && (!opensslSupport));
|
||||||
|
assert opensslSupport -> ((openssl != null) && (!gnutlsSupport));
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "rtmpdump-${version}";
|
||||||
|
version = "2.4";
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "rtmpdump-2.4";
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = git://git.ffmpeg.org/rtmpdump;
|
url = git://git.ffmpeg.org/rtmpdump;
|
||||||
rev = "79459a2b43f41ac44a2ec001139bcb7b1b8f7497";
|
# Currently the latest commit is used (a release has not been made since 2011, i.e. '2.4')
|
||||||
sha256 = "5af22362004566794035f989879b13d721f85d313d752abd10a7e45806e3944c";
|
rev = "a107cef9b392616dff54fabfd37f985ee2190a6f";
|
||||||
|
sha256 = "178h5j7w20g2h9mn6cb7dfr3fa4g4850hpl1lzxmi0nk3blzcsvl";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ zlib gnutls libgcrypt ];
|
makeFlags = [ ''prefix=$(out)'' ]
|
||||||
|
++ optional gnutlsSupport "CRYPTO=GNUTLS"
|
||||||
|
++ optional opensslSupport "CRYPTO=OPENSSL";
|
||||||
|
|
||||||
makeFlags = "CRYPTO=GNUTLS";
|
buildInputs = [ zlib ]
|
||||||
|
++ optional gnutlsSupport gnutls
|
||||||
configurePhase = ''
|
++ optional opensslSupport openssl;
|
||||||
sed -i s,/usr/local,$out, Makefile librtmp/Makefile
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://rtmpdump.mplayerhq.hu/;
|
|
||||||
description = "Toolkit for RTMP streams";
|
description = "Toolkit for RTMP streams";
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
homepage = http://rtmpdump.mplayerhq.hu/;
|
||||||
maintainers = [ stdenv.lib.maintainers. viric ];
|
license = licenses.gpl2;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ codyopel viric ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user