Merge pull request #5878 from bjornfor/gstreamer-envvar-wrapper

gstreamer: wrap gst-{launch,inspect,typefind} with GST_PLUGIN_SYSTEM_PATH
This commit is contained in:
Sou Bunnbu 2015-01-22 09:12:40 +08:00
commit e4987099e7

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, perl, bison, flex, python, gobjectIntrospection { stdenv, fetchurl, pkgconfig, perl, bison, flex, python, gobjectIntrospection
, glib , glib, makeWrapper
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -19,10 +19,16 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ nativeBuildInputs = [
pkgconfig perl bison flex python gobjectIntrospection pkgconfig perl bison flex python gobjectIntrospection makeWrapper
]; ];
propagatedBuildInputs = [ glib ]; propagatedBuildInputs = [ glib ];
postInstall = ''
for prog in "$out/bin/"*; do
wrapProgram "$prog" --prefix GST_PLUGIN_SYSTEM_PATH : "\$(unset _tmp; for profile in \$NIX_PROFILES; do _tmp="\$profile/lib/gstreamer-1.0''$\{_tmp:+:\}\$_tmp"; done; printf "\$_tmp")"
done
'';
setupHook = ./setup-hook.sh; setupHook = ./setup-hook.sh;
} }