2018-03-31 23:07:04 +02:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, python
|
|
|
|
, gst-plugins-base, orc, gettext
|
2013-12-23 16:36:37 +01:00
|
|
|
, a52dec, libcdio, libdvdread
|
2018-04-25 01:35:54 +02:00
|
|
|
, libmad, libmpeg2, x264, libintl, lib
|
2019-01-21 02:48:04 +01:00
|
|
|
, opencore-amr
|
2018-04-25 01:35:54 +02:00
|
|
|
, darwin
|
2013-12-23 16:36:37 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-08-30 13:30:13 +02:00
|
|
|
name = "gst-plugins-ugly-${version}";
|
2019-05-01 16:10:36 +02:00
|
|
|
version = "1.16.0";
|
2013-12-23 16:36:37 +01:00
|
|
|
|
2018-04-25 01:35:54 +02:00
|
|
|
meta = with lib; {
|
2014-03-17 14:47:58 +01:00
|
|
|
description = "Gstreamer Ugly Plugins";
|
2017-09-16 21:28:31 +02:00
|
|
|
homepage = "https://gstreamer.freedesktop.org";
|
2014-03-17 14:47:58 +01:00
|
|
|
longDescription = ''
|
|
|
|
a set of plug-ins that have good quality and correct functionality,
|
|
|
|
but distributing them might pose problems. The license on either
|
|
|
|
the plug-ins or the supporting libraries might not be how we'd
|
|
|
|
like. The code might be widely known to present patent problems.
|
|
|
|
'';
|
|
|
|
license = licenses.lgpl2Plus;
|
2015-04-09 03:55:19 +02:00
|
|
|
platforms = platforms.unix;
|
2018-04-25 01:35:54 +02:00
|
|
|
maintainers = with maintainers; [ matthewbauer ];
|
2013-12-23 16:36:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/src/gst-plugins-ugly/${name}.tar.xz";
|
2019-05-01 16:10:36 +02:00
|
|
|
sha256 = "1hm46c1fy9vl1wfwipsj41zp79cm7in1fpmjw24j5hriy32n82g3";
|
2013-12-23 16:36:37 +01:00
|
|
|
};
|
|
|
|
|
2016-08-29 02:30:01 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-04-24 14:39:30 +02:00
|
|
|
|
2018-03-31 23:07:04 +02:00
|
|
|
nativeBuildInputs = [ meson ninja gettext pkgconfig python ];
|
2013-12-23 16:36:37 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gst-plugins-base orc
|
|
|
|
a52dec libcdio libdvdread
|
2018-04-03 19:30:24 +02:00
|
|
|
libmad libmpeg2 x264
|
2018-03-14 20:15:06 +01:00
|
|
|
libintl
|
2019-01-21 02:48:04 +01:00
|
|
|
opencore-amr
|
2018-04-25 01:35:54 +02:00
|
|
|
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks;
|
|
|
|
[ IOKit CoreFoundation DiskArbitration ]);
|
2019-01-06 12:13:19 +01:00
|
|
|
|
2019-01-21 02:48:04 +01:00
|
|
|
mesonFlags = [
|
|
|
|
# Enables all features, so that we know when new dependencies are necessary.
|
|
|
|
"-Dauto_features=enabled"
|
|
|
|
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
|
|
|
|
"-Dsidplay=disabled" # sidplay / sidplay/player.h isn't packaged in nixpkgs as of writing
|
|
|
|
];
|
|
|
|
|
2019-01-06 12:13:19 +01:00
|
|
|
NIX_LDFLAGS = [ "-lm" ];
|
2013-12-23 16:36:37 +01:00
|
|
|
}
|