Skip to content

Commit

Permalink
Merge NixOS#52444: ffmpeg{_3_4,_4,-full}: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Jan 19, 2019
2 parents 23eb5e8 + 19d6c32 commit b277551
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
13 changes: 7 additions & 6 deletions pkgs/development/libraries/ffmpeg-full/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
, libxcbxfixesExtlib ? true # X11 grabbing mouse rendering
, libxcbshapeExtlib ? true # X11 grabbing shape rendering
, libXv ? null # Xlib support
, libXext ? null # Xlib support
, lzma ? null # xz-utils
, nvenc ? false, nvidia-video-sdk ? null, nv-codec-headers ? null # NVIDIA NVENC support
, callPackage # needed for NVENC to access external ffmpeg nvidia headers
Expand Down Expand Up @@ -139,7 +140,7 @@
* Darwin frameworks
*/
, Cocoa, CoreAudio, CoreServices, AVFoundation, MediaToolbox
, VideoDecodeAcceleration, CF
, VideoDecodeAcceleration, cf-private
}:

/* Maintainer notes:
Expand Down Expand Up @@ -230,11 +231,11 @@ assert nvenc -> nvidia-video-sdk != null && nonfreeLicensing;

stdenv.mkDerivation rec {
name = "ffmpeg-full-${version}";
version = "4.0.2";
version = "4.1";

src = fetchurl {
url = "https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz";
sha256 = "15rgzcmdccy4flajs63gkz4n3k24wkkg50r13l1r83lrxg4hqp59";
sha256 = "150rrm549fy1x71c9whmyi5knyd9sliwvmcsm438bdgg4v8c93m3";
};

prePatch = ''
Expand Down Expand Up @@ -355,7 +356,7 @@ stdenv.mkDerivation rec {
(enableFeature (libvorbis != null) "libvorbis")
(enableFeature (libvpx != null) "libvpx")
(enableFeature (libwebp != null) "libwebp")
(enableFeature (libX11 != null && libXv != null) "xlib")
(enableFeature (libX11 != null && libXv != null && libXext != null) "xlib")
(enableFeature (libxcb != null) "libxcb")
(enableFeature libxcbshmExtlib "libxcb-shm")
(enableFeature libxcbxfixesExtlib "libxcb-xfixes")
Expand Down Expand Up @@ -408,7 +409,7 @@ stdenv.mkDerivation rec {
bzip2 celt fontconfig freetype frei0r fribidi game-music-emu gnutls gsm
libjack2 ladspaH lame libaom libass libbluray libbs2b libcaca libdc1394 libmodplug libmysofa
libogg libopus libssh libtheora libvdpau libvorbis libvpx libwebp libX11
libxcb libXv lzma openal openjpeg libpulseaudio rtmpdump opencore-amr
libxcb libXv libXext lzma openal openjpeg libpulseaudio rtmpdump opencore-amr
samba SDL2 soxr speex vid-stab vo-amrwbenc wavpack x264 x265 xavs xvidcore
zeromq4 zlib
] ++ optional openglExtlib libGLU_combined
Expand All @@ -431,7 +432,7 @@ stdenv.mkDerivation rec {
FILES+=($(ls $out/lib/*.dylib))
for f in ''${FILES[@]}; do
if [ ! -h "$f" ]; then
install_name_tool -change ${CF}/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation "$f"
install_name_tool -change ${cf-private}/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation "$f"
fi
done
'';
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/ffmpeg/3.4.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

callPackage ./generic.nix (args // rec {
version = "${branch}";
branch = "3.4.4";
sha256 = "0xmcijcpa7b59ws5ycmnp0a3pjmnpgly0zv8yff6if4p7pw7406f";
branch = "3.4.5";
sha256 = "0cbzysj9pskxh1kfdwmq2848fn6gi4pvh5y3insv10pdhpcjp8a3";
darwinFrameworks = [ Cocoa CoreMedia ];
})
4 changes: 2 additions & 2 deletions pkgs/development/libraries/ffmpeg/4.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

callPackage ./generic.nix (args // rec {
version = "${branch}";
branch = "4.0.2";
sha256 = "0mnh41j3kzi3x3clai1yhqasr1kc8zvd5cz0283pxhs2bxrm2v1l";
branch = "4.1";
sha256 = "19d16dhb4gx3akhbqd8844awx1axxli91bsjwsm4qp2a4i1zp15n";
darwinFrameworks = [ Cocoa CoreMedia ];
})
8 changes: 2 additions & 6 deletions pkgs/development/libraries/libaom/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,18 @@

stdenv.mkDerivation rec {
name = "libaom-${version}";
version = "1.0.0";
version = "1.0.0-errata1";

src = fetchgit {
url = "https://aomedia.googlesource.com/aom";
rev = "v${version}";
sha256 = "07h2vhdiq7c3fqaz44rl4vja3dgryi6n7kwbwbj1rh485ski4j82";
sha256 = "090phh4jl9z6m2pwpfpwcjh6iyw0byngb2n112qxkg6a3gsaa62f";
};

nativeBuildInputs = [
yasm perl cmake pkgconfig python3
];

cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
];

preConfigure = ''
# build uses `git describe` to set the build version
cat > $NIX_BUILD_TOP/git << "EOF"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9752,7 +9752,7 @@ in
vid-stab = if stdenv.isDarwin then null else vid-stab;
x265 = if stdenv.isDarwin then null else x265;
xavs = if stdenv.isDarwin then null else xavs;
inherit (darwin) CF;
inherit (darwin) cf-private;
inherit (darwin.apple_sdk.frameworks)
Cocoa CoreServices CoreAudio AVFoundation MediaToolbox
VideoDecodeAcceleration;
Expand Down

0 comments on commit b277551

Please sign in to comment.