mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-29 00:27:49 +03:00
handbrake: 1.2.0: updating deps
rm yasm - dropped rm bzip2, zlib - no needed for build rm mp4v2, libmkv, mpeg2dec - drop abandonware, HandBrake now uses FFMpeg for that add nasm, speex, nv-codec-headers - new required deps
This commit is contained in:
parent
42f660a3a0
commit
fd8a90f5ca
@ -3,13 +3,16 @@
|
|||||||
# Derivation patches HandBrake to use Nix closure dependencies.
|
# Derivation patches HandBrake to use Nix closure dependencies.
|
||||||
#
|
#
|
||||||
|
|
||||||
{ stdenv, lib, fetchurl,
|
{ stdenv, lib, fetchurl, callPackage,
|
||||||
python2, pkgconfig, autoconf, automake, cmake, yasm, libtool, m4,
|
# Main build tools
|
||||||
fribidi, fontconfig, freetype, jansson, zlib,
|
python2, pkgconfig, autoconf, automake, cmake, nasm, libtool, m4,
|
||||||
libass, libiconv, libsamplerate, libxml2, bzip2,
|
# Processing, video codecs, containers
|
||||||
ffmpeg_4, libtheora, x264, x265, libvpx, mpeg2dec,
|
ffmpeg_4, libogg, x264, x265, libvpx, libtheora,
|
||||||
libopus, lame, libvorbis, a52dec,
|
# Codecs, audio
|
||||||
libogg, libmkv, mp4v2,
|
libopus, lame, libvorbis, a52dec, speex, libsamplerate,
|
||||||
|
# Text processing
|
||||||
|
libiconv, fribidi, fontconfig, freetype, libass, jansson, libxml2,
|
||||||
|
# Optical media
|
||||||
libdvdread, libdvdnav, libdvdcss, libbluray,
|
libdvdread, libdvdnav, libdvdcss, libbluray,
|
||||||
useGtk ? true, wrapGAppsHook ? null,
|
useGtk ? true, wrapGAppsHook ? null,
|
||||||
intltool ? null,
|
intltool ? null,
|
||||||
@ -25,6 +28,12 @@
|
|||||||
useFdk ? false, fdk_aac ? null
|
useFdk ? false, fdk_aac ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
nv-codec-headers = callPackage ../../../development/libraries/ffmpeg-full/nv-codec-headers.nix { };
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.2.0";
|
version = "1.2.0";
|
||||||
name = "handbrake-${version}";
|
name = "handbrake-${version}";
|
||||||
@ -35,21 +44,22 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
python2 pkgconfig autoconf automake cmake yasm libtool m4
|
python2 pkgconfig autoconf automake cmake nasm libtool m4
|
||||||
] ++ lib.optionals useGtk [ intltool wrapGAppsHook ];
|
] ++ lib.optionals useGtk [ intltool wrapGAppsHook ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
fribidi fontconfig freetype jansson zlib
|
ffmpeg_4 libogg libtheora x264 x265 libvpx
|
||||||
libass libiconv libsamplerate libxml2 bzip2
|
libopus lame libvorbis a52dec speex libsamplerate
|
||||||
ffmpeg_4 libtheora x264 x265 libvpx mpeg2dec
|
libiconv fribidi fontconfig freetype libass jansson libxml2
|
||||||
libopus lame libvorbis a52dec
|
|
||||||
libogg libmkv mp4v2
|
|
||||||
libdvdread libdvdnav libdvdcss libbluray
|
libdvdread libdvdnav libdvdcss libbluray
|
||||||
] ++ lib.optionals useGtk [
|
] ++ lib.optionals useGtk [
|
||||||
glib gtk3 libappindicator-gtk3 libnotify
|
glib gtk3 libappindicator-gtk3 libnotify
|
||||||
gst_all_1.gstreamer gst_all_1.gst-plugins-base dbus-glib udev
|
gst_all_1.gstreamer gst_all_1.gst-plugins-base dbus-glib udev
|
||||||
libgudev hicolor-icon-theme
|
libgudev hicolor-icon-theme
|
||||||
] ++ lib.optional useFdk fdk_aac;
|
] ++ lib.optional useFdk fdk_aac
|
||||||
|
# NOTE: 2018-12-27: Handbrake supports nv-codec-headers for Linux only,
|
||||||
|
# look at ./make/configure.py search "enable_nvenc"
|
||||||
|
++ lib.optional stdenv.isLinux nv-codec-headers;
|
||||||
|
|
||||||
# NOTE: 2018-12-25: v1.2.0 now requires cmake dep
|
# NOTE: 2018-12-25: v1.2.0 now requires cmake dep
|
||||||
# (default distribution bundles&builds 3rd party libs),
|
# (default distribution bundles&builds 3rd party libs),
|
||||||
|
Loading…
Reference in New Issue
Block a user