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

54 lines
1.7 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, meson, ninja, pkgconfig, python
, gst-plugins-base, orc, gettext
2013-12-23 07:36:37 -08:00
, a52dec, libcdio, libdvdread
2018-04-24 16:35:54 -07:00
, libmad, libmpeg2, x264, libintl, lib
, opencore-amr
2018-04-24 16:35:54 -07:00
, darwin
2013-12-23 07:36:37 -08:00
}:
stdenv.mkDerivation rec {
name = "gst-plugins-ugly-${version}";
version = "1.15.1";
2013-12-23 07:36:37 -08:00
2018-04-24 16:35:54 -07:00
meta = with lib; {
2014-03-17 06:47:58 -07:00
description = "Gstreamer Ugly Plugins";
2017-09-16 12:28:31 -07:00
homepage = "https://gstreamer.freedesktop.org";
2014-03-17 06:47:58 -07: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-08 18:55:19 -07:00
platforms = platforms.unix;
2018-04-24 16:35:54 -07:00
maintainers = with maintainers; [ matthewbauer ];
2013-12-23 07:36:37 -08:00
};
src = fetchurl {
url = "${meta.homepage}/src/gst-plugins-ugly/${name}.tar.xz";
sha256 = "17p9x30ywanz1lbk061kzd8bypcv5hkin6iyaqffp8alrwiak3qp";
2013-12-23 07:36:37 -08:00
};
outputs = [ "out" "dev" ];
2016-04-24 05:39:30 -07:00
nativeBuildInputs = [ meson ninja gettext pkgconfig python ];
2013-12-23 07:36:37 -08:00
buildInputs = [
gst-plugins-base orc
a52dec libcdio libdvdread
libmad libmpeg2 x264
2018-03-14 12:15:06 -07:00
libintl
opencore-amr
2018-04-24 16:35:54 -07:00
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks;
[ IOKit CoreFoundation DiskArbitration ]);
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
];
NIX_LDFLAGS = [ "-lm" ];
2013-12-23 07:36:37 -08:00
}