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

57 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, fetchpatch, meson, ninja
, pkgconfig, gettext, gobjectIntrospection
, bison, flex, python3, glib, makeWrapper
, libcap,libunwind, darwin
2013-12-23 16:36:37 +01:00
}:
stdenv.mkDerivation rec {
2018-03-30 21:08:33 +02:00
name = "gstreamer-1.14.0";
2013-12-23 16:36:37 +01:00
meta = {
description = "Open source multimedia framework";
2017-09-16 21:28:31 +02:00
homepage = https://gstreamer.freedesktop.org;
2013-12-23 16:36:37 +01:00
license = stdenv.lib.licenses.lgpl2Plus;
2015-04-09 03:46:49 +02:00
platforms = stdenv.lib.platforms.unix;
2016-05-09 16:58:22 +02:00
maintainers = [ stdenv.lib.maintainers.ttuegel ];
2013-12-23 16:36:37 +01:00
};
src = fetchurl {
url = "${meta.homepage}/src/gstreamer/${name}.tar.xz";
2018-03-30 21:08:33 +02:00
sha256 = "0vj6k01lp2yva6rfd95fkyng9jdr62gkz0x8d2l81dyly1ki6dpw";
2013-12-23 16:36:37 +01:00
};
patches = [
(fetchpatch {
url = "https://bug794856.bugzilla-attachments.gnome.org/attachment.cgi?id=370411";
sha256 = "16plzzmkk906k4892zq68j3c9z8vdma5nxzlviq20jfv04ykhmk2";
})
./fix_pkgconfig_includedir.patch
];
outputs = [ "out" "dev" ];
outputBin = "dev";
2016-04-24 14:39:30 +02:00
2013-12-23 16:36:37 +01:00
nativeBuildInputs = [
meson ninja pkgconfig gettext bison flex python3 makeWrapper gobjectIntrospection
2013-12-23 16:36:37 +01:00
];
buildInputs = [ libcap libunwind ] ++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreServices;
2013-12-23 16:36:37 +01:00
propagatedBuildInputs = [ glib ];
postInstall = ''
for prog in "$dev/bin/"*; do
wrapProgram "$prog" --suffix GST_PLUGIN_SYSTEM_PATH : "\$(unset _tmp; for profile in \$NIX_PROFILES; do _tmp="\$profile/lib/gstreamer-1.0''$\{_tmp:+:\}\$_tmp"; done; printf "\$_tmp")"
done
'';
preConfigure= ''
patchShebangs .
'';
2016-04-24 14:39:30 +02:00
preFixup = ''
moveToOutput "share/bash-completion" "$dev"
'';
setupHook = ./setup-hook.sh;
2013-12-23 16:36:37 +01:00
}