2020-04-24 23:36:52 +00:00
|
|
|
{ autoreconfHook
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitLab
|
|
|
|
, mediastreamer
|
|
|
|
, openh264
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2022-04-27 09:35:20 +00:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "msopenh264";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "linphone-4.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.linphone.org";
|
|
|
|
owner = "public";
|
|
|
|
group = "BC";
|
|
|
|
repo = pname;
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "5603a432be2ed10f5d5a5ce068ef83ab2a996d6b";
|
|
|
|
sha256 = "sha256-AqZ7tsNZw2Djgyo1JBJbT/c3eQVyEn6r3CT6DQLD/B8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ mediastreamer openh264 ];
|
|
|
|
|
|
|
|
# Do not build static libraries
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DENABLE_STATIC=NO"
|
|
|
|
"-DCMAKE_SKIP_INSTALL_RPATH=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
# CMAKE_INSTALL_PREFIX has no effect so let's install manually. See:
|
|
|
|
# https://gitlab.linphone.org/BC/public/msopenh264/issues/1
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib/mediastreamer/plugins
|
|
|
|
cp src/libmsopenh264.so $out/lib/mediastreamer/plugins/
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "H.264 encoder/decoder plugin for mediastreamer2. Part of the Linphone project.";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.linphone.org/technical-corner/mediastreamer2";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|