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

60 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
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 = [
(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
];
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 ];
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
}