mediastreamer-openh264: 1.2.1 -> unstable-2020-03-03

+33 -15
+33 -15
pkgs/development/libraries/mediastreamer/msopenh264.nix
··· 1 - { stdenv, autoreconfHook, pkgconfig, mediastreamer, openh264 2 - , fetchurl, fetchpatch, cmake 3 }: 4 5 stdenv.mkDerivation rec { 6 - pname = "mediastreamer-openh264"; 7 - version = "1.2.1"; 8 9 - src = fetchurl { 10 - url = "https://www.linphone.org/releases/sources/plugins/msopenh264/msopenh264-${version}.tar.gz"; 11 - sha256 = "0rdxgazm52560g52pp6mp3mwx6j1z3h2zyizzfycp8y8zi92fqm8"; 12 }; 13 14 - patches = [ 15 - (fetchpatch { 16 - name = "msopenh264-build-with-openh264-v2.patch"; 17 - url = "https://git.pld-linux.org/?p=packages/mediastreamer-plugin-msopenh264.git;a=blob_plain;f=mediastreamer-plugin-msopenh264-openh264.patch;hb=344b8af379701a7e58b4ffb3cbac1517eff079fd"; 18 - sha256 = "10c24b0afchx78q28176pd8iz7i1nlf57f6v6lyqxpz60fm5nrcc"; 19 - }) 20 - ]; 21 - 22 nativeBuildInputs = [ autoreconfHook cmake pkgconfig ]; 23 buildInputs = [ mediastreamer openh264 ]; 24 25 meta = with stdenv.lib; { 26 description = "H.264 encoder/decoder plugin for mediastreamer2"; 27 homepage = "https://www.linphone.org/technical-corner/mediastreamer2"; 28 license = licenses.gpl2; 29 platforms = platforms.linux; 30 }; 31 }
··· 1 + { autoreconfHook 2 + , cmake 3 + , fetchFromGitLab 4 + , fetchpatch 5 + , mediastreamer 6 + , openh264 7 + , pkgconfig 8 + , stdenv 9 }: 10 11 stdenv.mkDerivation rec { 12 + pname = "msopenh264"; 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"; 16 17 + src = fetchFromGitLab { 18 + domain = "gitlab.linphone.org"; 19 + owner = "public"; 20 + group = "BC"; 21 + repo = pname; 22 + rev = "2c3abf52824ad23a4caae7565ef158ef91767704"; 23 + sha256 = "140hs5lzpshzswvl39klcypankq3v2qck41696j22my7s4wsa0hr"; 24 }; 25 26 nativeBuildInputs = [ autoreconfHook cmake pkgconfig ]; 27 buildInputs = [ mediastreamer openh264 ]; 28 29 + # Do not build static libraries 30 + cmakeFlags = [ 31 + "-DENABLE_STATIC=NO" 32 + "-DCMAKE_SKIP_INSTALL_RPATH=ON" 33 + ]; 34 + 35 + # CMAKE_INSTALL_PREFIX has no effect so let's install manually. See: 36 + # https://gitlab.linphone.org/BC/public/msopenh264/issues/1 37 + installPhase = '' 38 + mkdir -p $out/lib/mediastreamer/plugins 39 + cp src/libmsopenh264.so $out/lib/mediastreamer/plugins/ 40 + ''; 41 + 42 meta = with stdenv.lib; { 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 ]; 48 }; 49 }