git.iko.soy/typeable/nixpkgs
on master help sign in
handbrake: add FDK as option (#38809)
commit365f08378bd300940bb9b426cad1979a894ab919 authorAnton Latukha <anton.latukha@gmail.com> dateThu 12 Apr 2018, 12:50 (9 years ago) parent722d822
1 file changed+5−5
pkgs/applications/video/handbrake/default.nix+5−5
pkgs/applications/video/handbrake/default.nix+5−5
@@ -13,13 +13,13 @@
1313 python2, pkgconfig, yasm, harfbuzz, zlib,
1414 autoconf, automake, cmake, libtool, m4, jansson,
1515 libass, libiconv, libsamplerate, fribidi, libxml2, bzip2,
16− libogg, libopus, libtheora, libvorbis, libdvdcss, a52dec, fdk_aac,
16+ libogg, libopus, libtheora, libvorbis, libdvdcss, a52dec,
1717 lame, ffmpeg, libdvdread, libdvdnav, libbluray,
1818 mp4v2, mpeg2dec, x264, x265, libmkv,
1919 fontconfig, freetype, hicolor-icon-theme,
2020 glib, gtk3, intltool, libnotify,
2121 gst_all_1, dbus-glib, udev, libgudev, libvpx,
22− useGtk ? true, wrapGAppsHook ? null, libappindicator-gtk3 ? null
22+ useGtk ? true, wrapGAppsHook ? null, libappindicator-gtk3 ? null, useFdk ? false, fdk_aac ? null
2323}:
2424
2525stdenv.mkDerivation rec {
@@ -42,13 +42,13 @@ stdenv.mkDerivation rec {
4242 buildInputs = [
4343 fribidi fontconfig freetype jansson zlib
4444 libass libiconv libsamplerate libxml2 bzip2
45− libogg libopus libtheora libvorbis libdvdcss a52dec libmkv fdk_aac
45+ libogg libopus libtheora libvorbis libdvdcss a52dec libmkv
4646 lame ffmpeg libdvdread libdvdnav libbluray mp4v2 mpeg2dec x264 x265 libvpx
4747 ] ++ (lib.optionals useGtk [
4848 glib gtk3 libappindicator-gtk3 libnotify
4949 gst_all_1.gstreamer gst_all_1.gst-plugins-base dbus-glib udev
5050 libgudev
51− ]);
51+ ]) ++ (lib.optionals useFdk [fdk_aac]);
5252
5353 dontUseCmakeConfigure = true;
5454
@@ -75,8 +75,8 @@ stdenv.mkDerivation rec {
7575 configureFlags = [
7676 "--disable-df-fetch"
7777 "--disable-df-verify"
78− "--enable-fdk-aac"
7978 (if useGtk then "--disable-gtk-update-checks" else "--disable-gtk")
79+ (if useFdk then "--enable-fdk-aac" else "")
8080 ];
8181
8282 NIX_LDFLAGS = [