1 { stdenv, lib, fetchurl, cmake, gst_all_1, phonon, pkg-config
2 , extra-cmake-modules, qttools, qtbase, qtx11extras
8 stdenv.mkDerivation rec {
9 pname = "phonon-backend-gstreamer";
13 homepage = "https://phonon.kde.org/";
14 description = "GStreamer backend for Phonon";
15 platforms = platforms.linux;
16 maintainers = with maintainers; [ ttuegel ];
17 license = licenses.lgpl21;
21 url = "mirror://kde/stable/phonon/${pname}/${version}/${pname}-${version}.tar.xz";
22 sha256 = "1wk1ip2w7fkh65zk6rilj314dna0hgsv2xhjmpr5w08xa8sii1y5";
25 # Hardcode paths to useful plugins so the backend doesn't depend
26 # on system paths being set.
27 patches = [ ./gst-plugin-paths.patch ];
29 dontWrapQtApps = true;
33 lib.makeSearchPathOutput "lib" "/lib/gstreamer-1.0"
43 # This flag should be picked up through pkg-config, but it isn't.
44 "-I${gst_all_1.gstreamer.dev}/lib/gstreamer-1.0/include"
46 ''-DGST_PLUGIN_PATH_1_0="${gstPluginPaths}"''
49 buildInputs = with gst_all_1; [
65 "-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}"