Merge pull request #76112 from acowley/handbrake-1.3.0
handbrake: 1.2.2 -> 1.3.0
This commit is contained in:
commit
c729a066ab
|
@ -9,9 +9,10 @@
|
||||||
|
|
||||||
{ stdenv, lib, fetchurl, fetchpatch,
|
{ stdenv, lib, fetchurl, fetchpatch,
|
||||||
# Main build tools
|
# Main build tools
|
||||||
python2, pkgconfig, autoconf, automake, cmake, nasm, libtool, m4, lzma,
|
python2, pkgconfig, autoconf, automake, libtool, m4, lzma,
|
||||||
|
numactl,
|
||||||
# Processing, video codecs, containers
|
# Processing, video codecs, containers
|
||||||
ffmpeg-full, nv-codec-headers, libogg, x264, x265, libvpx, libtheora,
|
ffmpeg-full, nv-codec-headers, libogg, x264, x265, libvpx, libtheora, dav1d,
|
||||||
# Codecs, audio
|
# Codecs, audio
|
||||||
libopus, lame, libvorbis, a52dec, speex, libsamplerate,
|
libopus, lame, libvorbis, a52dec, speex, libsamplerate,
|
||||||
# Text processing
|
# Text processing
|
||||||
|
@ -48,22 +49,22 @@ assert stdenv.isDarwin -> AudioToolbox != null && Foundation != null
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "handbrake";
|
pname = "handbrake";
|
||||||
version = "1.2.2";
|
version = "1.3.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = ''https://download2.handbrake.fr/${version}/HandBrake-${version}-source.tar.bz2'';
|
url = ''https://download2.handbrake.fr/${version}/HandBrake-${version}-source.tar.bz2'';
|
||||||
sha256 = "0k2yaqy7zi06k8mkp9az2mn9dlgj3a1339vacakfh2nn2zsics6z";
|
sha256 = "15hxncswmaj62hb40fxixsa6d519zb712z9xbdq979q4rasjxa59";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
python2 pkgconfig autoconf automake cmake nasm libtool m4
|
python2 pkgconfig autoconf automake libtool m4
|
||||||
] ++ lib.optionals useGtk [ intltool wrapGAppsHook ];
|
] ++ lib.optionals useGtk [ intltool wrapGAppsHook ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
ffmpeg-full libogg libtheora x264 x265 libvpx
|
ffmpeg-full libogg libtheora x264 x265 libvpx dav1d
|
||||||
libopus lame libvorbis a52dec speex libsamplerate
|
libopus lame libvorbis a52dec speex libsamplerate
|
||||||
libiconv fribidi fontconfig freetype libass jansson libxml2 harfbuzz
|
libiconv fribidi fontconfig freetype libass jansson libxml2 harfbuzz
|
||||||
libdvdread libdvdnav libdvdcss libbluray lzma
|
libdvdread libdvdnav libdvdcss libbluray lzma numactl
|
||||||
] ++ 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
|
||||||
|
@ -74,20 +75,6 @@ stdenv.mkDerivation rec {
|
||||||
# look at ./make/configure.py search "enable_nvenc"
|
# look at ./make/configure.py search "enable_nvenc"
|
||||||
++ lib.optional stdenv.isLinux nv-codec-headers;
|
++ lib.optional stdenv.isLinux nv-codec-headers;
|
||||||
|
|
||||||
# NOTE: 2018-12-25: v1.2.0 now requires cmake dep
|
|
||||||
# (default distribution bundles&builds 3rd party libs),
|
|
||||||
# don't trigger cmake build
|
|
||||||
dontUseCmakeConfigure = true;
|
|
||||||
# cp: cannot create regular file './internal_defaults.json': File exists
|
|
||||||
enableParallelBuilding = false;
|
|
||||||
|
|
||||||
# The samplerate patch should be removed when HandBrake 1.3.0 is released
|
|
||||||
patches = [(fetchpatch {
|
|
||||||
name = "set-ffmpeg-samplerate.patch";
|
|
||||||
url = "https://patch-diff.githubusercontent.com/raw/HandBrake/HandBrake/pull/2126.patch";
|
|
||||||
sha256 = "00lds9h27cvyr53qpvv8gbv01hfxdxd8gphxcwbwg8akqrvk9gbf";
|
|
||||||
})];
|
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
patchShebangs scripts
|
patchShebangs scripts
|
||||||
|
|
||||||
|
@ -99,6 +86,9 @@ stdenv.mkDerivation rec {
|
||||||
# Force using nixpkgs dependencies
|
# Force using nixpkgs dependencies
|
||||||
sed -i '/MODULES += contrib/d' make/include/main.defs
|
sed -i '/MODULES += contrib/d' make/include/main.defs
|
||||||
sed -i '/PKG_CONFIG_PATH=/d' gtk/module.rules
|
sed -i '/PKG_CONFIG_PATH=/d' gtk/module.rules
|
||||||
|
sed -e 's/^[[:space:]]*\(meson\|ninja\|nasm\)[[:space:]]*= ToolProbe.*$//g' \
|
||||||
|
-e '/ ## Additional library and tool checks/,/ ## MinGW specific library and tool checks/d' \
|
||||||
|
-i make/configure.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
@ -112,6 +102,8 @@ stdenv.mkDerivation rec {
|
||||||
# NOTE: 2018-12-27: Check NixOS HandBrake test if changing
|
# NOTE: 2018-12-27: Check NixOS HandBrake test if changing
|
||||||
NIX_LDFLAGS = [
|
NIX_LDFLAGS = [
|
||||||
"-lx265"
|
"-lx265"
|
||||||
|
# NOTE: The -ldl flag was fixed upstream for a release after 1.3.0
|
||||||
|
"-ldl"
|
||||||
];
|
];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
|
|
Loading…
Reference in New Issue