diff options
author | Ben Wolsieffer <benwolsieffer@gmail.com> | 2019-08-30 23:40:32 -0400 |
---|---|---|
committer | Ben Wolsieffer <benwolsieffer@gmail.com> | 2019-08-31 13:50:54 -0400 |
commit | 29d9be2e720e15e13962215b63200a3081b183b0 (patch) | |
tree | f7d09b4bbcd7a74daf0efd914ed0055442e5b699 /pkgs/tools/video | |
parent | ea3bae4f4d23b35458957884c7b1aba0d88b0cee (diff) |
rtmpdump: fix build with OpenSSL 1.1
Diffstat (limited to 'pkgs/tools/video')
-rw-r--r-- | pkgs/tools/video/rtmpdump/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/tools/video/rtmpdump/default.nix b/pkgs/tools/video/rtmpdump/default.nix index af56ba3e7ebb..e5615093e481 100644 --- a/pkgs/tools/video/rtmpdump/default.nix +++ b/pkgs/tools/video/rtmpdump/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchgit, zlib +{ stdenv, fetchgit, fetchpatch, zlib , gnutlsSupport ? false, gnutls ? null, nettle ? null , opensslSupport ? true, openssl ? null }: @@ -20,6 +20,14 @@ stdenv.mkDerivation rec { sha256 = "17m9rmnnqyyzsnnxcdl8258hjmw16nxbj1n1lr7fj3kmcs189iig"; }; + patches = [ + # Fix build with OpenSSL 1.1 + (fetchpatch { + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-video/rtmpdump/files/rtmpdump-openssl-1.1.patch?id=1e7bef484f96e7647f5f0911d3c8caa48131c33b"; + sha256 = "1wds98pk8qr7shkfl8k49iirxiwd972h18w84bamiqln29wv6ql1"; + }) + ]; + makeFlags = [ ''prefix=$(out)'' ] ++ optional gnutlsSupport "CRYPTO=GNUTLS" ++ optional opensslSupport "CRYPTO=OPENSSL" |