diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2015-01-19 22:49:22 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2015-01-20 21:48:09 +0100 |
commit | 11aa06c57454cefc0eef057974dd793984b9afd7 (patch) | |
tree | 5150d70692a9f24142d73948dad628bcc17dd404 /pkgs/development/libraries/gstreamer | |
parent | 0e3007ec886948889bc634a88b3396b4ed01e7ee (diff) | |
download | nixpkgs-11aa06c57454cefc0eef057974dd793984b9afd7.tar nixpkgs-11aa06c57454cefc0eef057974dd793984b9afd7.tar.gz nixpkgs-11aa06c57454cefc0eef057974dd793984b9afd7.tar.bz2 nixpkgs-11aa06c57454cefc0eef057974dd793984b9afd7.tar.lz nixpkgs-11aa06c57454cefc0eef057974dd793984b9afd7.tar.xz nixpkgs-11aa06c57454cefc0eef057974dd793984b9afd7.tar.zst nixpkgs-11aa06c57454cefc0eef057974dd793984b9afd7.zip |
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.
Diffstat (limited to 'pkgs/development/libraries/gstreamer')
-rw-r--r-- | pkgs/development/libraries/gstreamer/core/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/development/libraries/gstreamer/core/default.nix b/pkgs/development/libraries/gstreamer/core/default.nix index 78d3c3f1a23..5e306f5500f 100644 --- a/pkgs/development/libraries/gstreamer/core/default.nix +++ b/pkgs/development/libraries/gstreamer/core/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, pkgconfig, perl, bison, flex, python, gobjectIntrospection -, glib +, glib, makeWrapper }: stdenv.mkDerivation rec { @@ -19,10 +19,16 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ - pkgconfig perl bison flex python gobjectIntrospection + pkgconfig perl bison flex python gobjectIntrospection makeWrapper ]; 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; } |