nixpkgs/pkgs/development/libraries/gstreamer/core/default.nix

34 lines
951 B
Nix
Raw Normal View History

2013-12-23 15:36:37 +00:00
{ stdenv, fetchurl, pkgconfig, perl, bison, flex, python, gobjectIntrospection
, glib, makeWrapper
2013-12-23 15:36:37 +00:00
}:
stdenv.mkDerivation rec {
2016-04-24 18:40:20 +01:00
name = "gstreamer-1.8.0";
2013-12-23 15:36:37 +00:00
meta = {
description = "Open source multimedia framework";
homepage = "http://gstreamer.freedesktop.org";
license = stdenv.lib.licenses.lgpl2Plus;
2015-04-09 02:46:49 +01:00
platforms = stdenv.lib.platforms.unix;
2013-12-23 15:36:37 +00:00
};
src = fetchurl {
url = "${meta.homepage}/src/gstreamer/${name}.tar.xz";
2016-04-24 18:40:20 +01:00
sha256 = "1p5y9bbrhywng0prmpxv29p6jsz6vd039d49bnc98p9b45532yll";
2013-12-23 15:36:37 +00:00
};
nativeBuildInputs = [
pkgconfig perl bison flex python gobjectIntrospection makeWrapper
2013-12-23 15:36:37 +00:00
];
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;
2013-12-23 15:36:37 +00:00
}