2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, autoreconfHook, pkgconfig, mediastreamer, openh264
|
2019-11-23 17:48:14 +00:00
|
|
|
, fetchurl, fetchpatch, cmake
|
2016-09-06 16:40:10 +01:00
|
|
|
}:
|
2015-08-26 21:16:28 +01:00
|
|
|
|
2019-11-23 17:48:14 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mediastreamer-openh264";
|
2019-11-23 17:48:14 +00:00
|
|
|
version = "1.2.1";
|
2015-08-26 21:16:28 +01:00
|
|
|
|
2019-11-23 17:48:14 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.linphone.org/releases/sources/plugins/msopenh264/msopenh264-${version}.tar.gz";
|
|
|
|
sha256 = "0rdxgazm52560g52pp6mp3mwx6j1z3h2zyizzfycp8y8zi92fqm8";
|
2015-08-26 21:16:28 +01:00
|
|
|
};
|
|
|
|
|
2019-11-23 17:48:14 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "msopenh264-build-with-openh264-v2.patch";
|
|
|
|
url = "https://git.pld-linux.org/?p=packages/mediastreamer-plugin-msopenh264.git;a=blob_plain;f=mediastreamer-plugin-msopenh264-openh264.patch;hb=344b8af379701a7e58b4ffb3cbac1517eff079fd";
|
|
|
|
sha256 = "10c24b0afchx78q28176pd8iz7i1nlf57f6v6lyqxpz60fm5nrcc";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-09-05 23:03:42 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook cmake pkgconfig ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ mediastreamer openh264 ];
|
2015-08-26 21:16:28 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "H.264 encoder/decoder plugin for mediastreamer2";
|
2019-11-23 17:48:14 +00:00
|
|
|
homepage = "https://www.linphone.org/technical-corner/mediastreamer2";
|
2015-08-26 21:16:28 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|