python312Packages.log-symbols: refactor (#369856)
[NixPkgs.git] / pkgs / development / libraries / gstreamer / gstreamermm / default.nix
blob462a75392cca035f3d9d62ccf9d32f445a076e5a
2   lib,
3   stdenv,
4   fetchurl,
5   fetchpatch,
6   pkg-config,
7   file,
8   glibmm,
9   gst_all_1,
10   gnome,
13 stdenv.mkDerivation rec {
14   pname = "gstreamermm";
15   version = "1.10.0";
17   src = fetchurl {
18     url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
19     sha256 = "0q4dx9sncqbwgpzma0zvj6zssc279yl80pn8irb95qypyyggwn5y";
20   };
22   patches = [
23     (fetchpatch {
24       name = "${pname}-${version}.fix-build-against-glib-2.68.patch";
25       url = "https://gitlab.gnome.org/GNOME/gstreamermm/-/commit/37116547fb5f9066978e39b4cf9f79f2154ad425.patch";
26       sha256 = "sha256-YHtmOiOl4POwas3eWHsew3IyGK7Aq22MweBm3JPwyBM=";
27     })
28   ];
30   outputs = [
31     "out"
32     "dev"
33   ];
35   nativeBuildInputs = [
36     pkg-config
37     file
38   ];
40   propagatedBuildInputs = [
41     glibmm
42     gst_all_1.gst-plugins-base
43   ];
45   enableParallelBuilding = true;
47   passthru = {
48     updateScript = gnome.updateScript {
49       attrPath = "gst_all_1.gstreamermm";
50       packageName = "gstreamermm";
51       versionPolicy = "odd-unstable";
52     };
53   };
55   meta = with lib; {
56     description = "C++ interface for GStreamer";
57     homepage = "https://gstreamer.freedesktop.org/bindings/cplusplus.html";
58     license = licenses.lgpl21Plus;
59     platforms = platforms.linux;
60     maintainers = with maintainers; [ romildo ];
61   };