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