17 stdenv.mkDerivation rec {
18 pname = "phonon-backend-gstreamer";
22 url = "mirror://kde/stable/phonon/${pname}/${version}/${pname}-${version}.tar.xz";
23 sha256 = "1wk1ip2w7fkh65zk6rilj314dna0hgsv2xhjmpr5w08xa8sii1y5";
27 # Hardcode paths to useful plugins so the backend doesn't depend
28 # on system paths being set.
29 ./gst-plugin-paths.patch
31 # Work around https://bugs.kde.org/show_bug.cgi?id=445196 until a new release.
33 url = "https://invent.kde.org/libraries/phonon-gstreamer/-/commit/bbbb160f30a394655cff9398d17961142388b0f2.patch";
34 sha256 = "sha256-tNBqVt67LNb9SQogS9ol8/xYIZvVSoVUgXQahMfkFh8=";
38 dontWrapQtApps = true;
40 env.NIX_CFLAGS_COMPILE =
42 gstPluginPaths = lib.makeSearchPathOutput "lib" "/lib/gstreamer-1.0" (
55 # This flag should be picked up through pkg-config, but it isn't.
56 "-I${gst_all_1.gstreamer.dev}/lib/gstreamer-1.0/include"
58 ''-DGST_PLUGIN_PATH_1_0="${gstPluginPaths}"''
61 buildInputs = with gst_all_1; [
76 cmakeBuildType = if debug then "Debug" else "Release";
79 homepage = "https://phonon.kde.org/";
80 description = "GStreamer backend for Phonon";
81 platforms = platforms.linux;
82 maintainers = with maintainers; [ ttuegel ];
83 license = licenses.lgpl21;