Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / mediastreamer / msopenh264.nix
blob83a96175cba55c6b72d0ab85e7eebf42604738c8
1 { autoreconfHook
2 , cmake
3 , fetchFromGitLab
4 , fetchpatch
5 , mediastreamer
6 , openh264
7 , pkg-config
8 , lib
9 , stdenv
12 stdenv.mkDerivation rec {
13   pname = "msopenh264";
14   version = "linphone-4.4.1";
16   src = fetchFromGitLab {
17     domain = "gitlab.linphone.org";
18     owner = "public";
19     group = "BC";
20     repo = pname;
21     rev = "5603a432be2ed10f5d5a5ce068ef83ab2a996d6b";
22     sha256 = "sha256-AqZ7tsNZw2Djgyo1JBJbT/c3eQVyEn6r3CT6DQLD/B8=";
23   };
25   nativeBuildInputs = [ cmake ];
26   buildInputs = [ mediastreamer openh264 ];
28   # Do not build static libraries
29   cmakeFlags = [
30     "-DENABLE_STATIC=NO"
31     "-DCMAKE_SKIP_INSTALL_RPATH=ON"
32   ];
34   # CMAKE_INSTALL_PREFIX has no effect so let's install manually. See:
35   # https://gitlab.linphone.org/BC/public/msopenh264/issues/1
36   installPhase = ''
37     mkdir -p $out/lib/mediastreamer/plugins
38     cp src/libmsopenh264.so $out/lib/mediastreamer/plugins/
39   '';
41   meta = with lib; {
42     description = "H.264 encoder/decoder plugin for mediastreamer2. Part of the Linphone project.";
43     homepage = "https://www.linphone.org/technical-corner/mediastreamer2";
44     license = licenses.gpl2;
45     platforms = platforms.linux;
46     maintainers = with maintainers; [ jluttine ];
47   };