11 stdenv.mkDerivation rec {
13 # Using master branch for linphone-desktop caused a chain reaction that many
14 # of its dependencies needed to use master branch too.
15 version = "unstable-2020-03-03";
17 src = fetchFromGitLab {
18 domain = "gitlab.linphone.org";
22 rev = "2c3abf52824ad23a4caae7565ef158ef91767704";
23 sha256 = "140hs5lzpshzswvl39klcypankq3v2qck41696j22my7s4wsa0hr";
26 nativeBuildInputs = [ autoreconfHook cmake pkg-config ];
27 buildInputs = [ mediastreamer openh264 ];
29 # Do not build static libraries
32 "-DCMAKE_SKIP_INSTALL_RPATH=ON"
35 # CMAKE_INSTALL_PREFIX has no effect so let's install manually. See:
36 # https://gitlab.linphone.org/BC/public/msopenh264/issues/1
38 mkdir -p $out/lib/mediastreamer/plugins
39 cp src/libmsopenh264.so $out/lib/mediastreamer/plugins/
43 description = "H.264 encoder/decoder plugin for mediastreamer2";
44 homepage = "https://www.linphone.org/technical-corner/mediastreamer2";
45 license = licenses.gpl2;
46 platforms = platforms.linux;
47 maintainers = with maintainers; [ jluttine ];