2018-03-31 13:39:20 +02:00
|
|
|
{ stdenv, fetchurl, fetchpatch, meson, ninja
|
|
|
|
, pkgconfig, gettext, gobjectIntrospection
|
|
|
|
, bison, flex, python3, glib, makeWrapper
|
|
|
|
, libcap,libunwind, darwin
|
2018-04-23 19:31:36 +02:00
|
|
|
, lib
|
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
|
|
|
|
2018-04-23 19:31:36 +02:00
|
|
|
meta = with lib ;{
|
2013-12-23 16:36:37 +01:00
|
|
|
description = "Open source multimedia framework";
|
2017-09-16 21:28:31 +02:00
|
|
|
homepage = https://gstreamer.freedesktop.org;
|
2018-04-23 19:31:36 +02:00
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ ttuegel matthewbauer ];
|
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
|
|
|
};
|
|
|
|
|
2018-04-23 19:31:36 +02:00
|
|
|
patches = [
|
2018-03-31 13:39:20 +02:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://bug794856.bugzilla-attachments.gnome.org/attachment.cgi?id=370411";
|
|
|
|
sha256 = "16plzzmkk906k4892zq68j3c9z8vdma5nxzlviq20jfv04ykhmk2";
|
|
|
|
})
|
|
|
|
./fix_pkgconfig_includedir.patch
|
|
|
|
];
|
|
|
|
|
2016-08-29 02:30:01 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-04-26 20:39:57 +02:00
|
|
|
outputBin = "dev";
|
2016-04-24 14:39:30 +02:00
|
|
|
|
2013-12-23 16:36:37 +01:00
|
|
|
nativeBuildInputs = [
|
2018-03-31 13:39:20 +02:00
|
|
|
meson ninja pkgconfig gettext bison flex python3 makeWrapper gobjectIntrospection
|
2013-12-23 16:36:37 +01:00
|
|
|
];
|
2018-04-23 19:31:36 +02:00
|
|
|
buildInputs =
|
|
|
|
lib.optionals stdenv.isLinux [ libcap libunwind ]
|
|
|
|
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreServices;
|
2013-12-23 16:36:37 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ glib ];
|
2014-02-28 02:03:07 +01:00
|
|
|
|
2015-01-19 22:49:22 +01:00
|
|
|
postInstall = ''
|
2016-11-06 22:50:41 +01:00
|
|
|
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")"
|
2015-01-19 22:49:22 +01:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2018-03-31 13:39:20 +02:00
|
|
|
preConfigure= ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2016-04-24 14:39:30 +02:00
|
|
|
preFixup = ''
|
|
|
|
moveToOutput "share/bash-completion" "$dev"
|
|
|
|
'';
|
|
|
|
|
2014-02-28 02:03:07 +01:00
|
|
|
setupHook = ./setup-hook.sh;
|
2013-12-23 16:36:37 +01:00
|
|
|
}
|