rtmpdump_gnutls: add missing lib nettle & use git date format
Close #8112.
This commit is contained in:
parent
4d70496ebb
commit
3400fa038f
|
@ -1,17 +1,17 @@
|
|||
{ stdenv, fetchgit, zlib
|
||||
, gnutlsSupport ? false, gnutls ? null
|
||||
, gnutlsSupport ? false, gnutls ? null, nettle ? null
|
||||
, opensslSupport ? true, openssl ? null
|
||||
}:
|
||||
|
||||
# Must have an ssl library enabled
|
||||
assert (gnutlsSupport || opensslSupport);
|
||||
assert gnutlsSupport -> ((gnutlsSupport != null) && (!opensslSupport));
|
||||
assert opensslSupport -> ((openssl != null) && (!gnutlsSupport));
|
||||
assert gnutlsSupport -> gnutlsSupport != null && nettle != null && !opensslSupport;
|
||||
assert opensslSupport -> openssl != null && !gnutlsSupport;
|
||||
|
||||
with stdenv.lib;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "rtmpdump-${version}";
|
||||
version = "2.4";
|
||||
version = "2015-01-15";
|
||||
|
||||
src = fetchgit {
|
||||
url = git://git.ffmpeg.org/rtmpdump;
|
||||
|
@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
|
|||
++ optional stdenv.cc.isClang "CC=clang";
|
||||
|
||||
propagatedBuildInputs = [ zlib ]
|
||||
++ optional gnutlsSupport gnutls
|
||||
++ optionals gnutlsSupport [ gnutls nettle ]
|
||||
++ optional opensslSupport openssl;
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue