gstreamer: wrap gst-{launch,inspect,typefind} with GST_PLUGIN_SYSTEM_PATH
So that the tools become useable. The cool thing about wrapping them like this (looping over $NIX_PROFILES) is that they will work on non-NixOS systems too, given that $NIX_PROFILES is set correctly. If you want the old (pure?) behaviour, just run gst-launch etc. with empty $NIX_PROFILES.
This commit is contained in:
parent
0e3007ec88
commit
11aa06c574
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user