@@ -29,15 +29,32 @@ stdenv.mkDerivation rec {
2929 sha256 = "1wc5p1rqglf0n1avp55s50k7fjdzdrhg0gind15k8796w7nfbhyf";
3030 };
3131
32+ # Hardcode paths to useful plugins so the backend doesn't depend
33+ # on system paths being set.
34+ patches = [ ./gst-plugin-paths.patch ];
35+
36+ NIX_CFLAGS_COMPILE =
37+ let gstPluginPaths =
38+ lib.makeSearchPathOutput "lib" "/lib/gstreamer-1.0"
39+ (with gst_all_1; [
40+ gstreamer
41+ gst-plugins-base
42+ gst-plugins-good
43+ gst-plugins-ugly
44+ gst-plugins-bad
45+ gst-libav
46+ ]);
47+ in [
48+ # This flag should be picked up through pkgconfig, but it isn't.
49+ "-I${gst_all_1.gstreamer.dev}/lib/gstreamer-1.0/include"
50+
51+ ''-DGST_PLUGIN_PATH_1_0="${gstPluginPaths}"''
52+ ];
53+
3254 buildInputs = with gst_all_1;
3355 [ gstreamer gst-plugins-base phonon ]
3456 ++ (if withQt5 then [ qtbase qtx11extras ] else [ qt4 ]);
3557
36− NIX_CFLAGS_COMPILE = [
37− # This flag should be picked up through pkgconfig, but it isn't.
38− "-I${gst_all_1.gstreamer.dev}/lib/gstreamer-1.0/include"
39− ];
40−
4158 # cleanup: the build system creates (empty) $out/$out/share/icons (double prefix)
4259 # if DESTDIR is unset
4360 DESTDIR="/";