2019-10-02 18:04:33 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
2019-12-25 07:44:13 +00:00
|
|
|
, python3
|
2019-10-02 18:04:33 +01:00
|
|
|
, gst-plugins-base
|
|
|
|
, orc
|
|
|
|
, gettext
|
|
|
|
, a52dec
|
|
|
|
, libcdio
|
|
|
|
, libdvdread
|
|
|
|
, libmad
|
|
|
|
, libmpeg2
|
|
|
|
, x264
|
|
|
|
, libintl
|
|
|
|
, lib
|
2019-01-21 01:48:04 +00:00
|
|
|
, opencore-amr
|
2018-04-25 00:35:54 +01:00
|
|
|
, darwin
|
2013-12-23 15:36:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gst-plugins-ugly";
|
2019-12-05 17:27:31 +00:00
|
|
|
version = "1.16.2";
|
2013-12-23 15:36:37 +00:00
|
|
|
|
2019-10-02 18:04:33 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
2013-12-23 15:36:37 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-10-02 17:59:16 +01:00
|
|
|
url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
|
2019-12-05 17:27:31 +00:00
|
|
|
sha256 = "1jpvc32x6q01zjkfgh6gmq6aaikiyfwwnhj7bmvn52syhrdl202m";
|
2013-12-23 15:36:37 +00:00
|
|
|
};
|
|
|
|
|
2019-10-02 18:04:33 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
pkgconfig
|
2019-12-25 07:44:13 +00:00
|
|
|
python3
|
2019-10-02 18:04:33 +01:00
|
|
|
];
|
2013-12-23 15:36:37 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2019-10-02 18:04:33 +01:00
|
|
|
gst-plugins-base
|
|
|
|
orc
|
|
|
|
a52dec
|
|
|
|
libcdio
|
|
|
|
libdvdread
|
|
|
|
libmad
|
|
|
|
libmpeg2
|
|
|
|
x264
|
2018-03-14 19:15:06 +00:00
|
|
|
libintl
|
2019-01-21 01:48:04 +00:00
|
|
|
opencore-amr
|
2019-10-02 18:04:33 +01:00
|
|
|
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
|
|
|
IOKit
|
|
|
|
CoreFoundation
|
|
|
|
DiskArbitration
|
|
|
|
]);
|
2019-01-06 11:13:19 +00:00
|
|
|
|
2019-01-21 01:48:04 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-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-10-02 18:04:33 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Gstreamer Ugly Plugins";
|
|
|
|
homepage = "https://gstreamer.freedesktop.org";
|
|
|
|
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;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ matthewbauer ];
|
|
|
|
};
|
2013-12-23 15:36:37 +00:00
|
|
|
}
|