From 50e6a99cb02ba9641022be6c44c13f9f5933fc73 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Fri, 7 Nov 2025 21:24:10 +0100 Subject: [PATCH 1/3] ffmpegthumbnailer: unstable-2024-01-04 -> 2.2.3 --- pkgs/by-name/ff/ffmpegthumbnailer/package.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/ff/ffmpegthumbnailer/package.nix b/pkgs/by-name/ff/ffmpegthumbnailer/package.nix index a19a0f5dafd5..ccd6ee4a6abb 100644 --- a/pkgs/by-name/ff/ffmpegthumbnailer/package.nix +++ b/pkgs/by-name/ff/ffmpegthumbnailer/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, cmake, pkg-config, ffmpeg-headless, @@ -9,17 +10,25 @@ libjpeg, }: -stdenv.mkDerivation { +stdenv.mkDerivation (finalAttrs: { pname = "ffmpegthumbnailer"; - version = "unstable-2024-01-04"; + version = "2.2.3"; src = fetchFromGitHub { owner = "dirkvdb"; repo = "ffmpegthumbnailer"; - rev = "1b5a77983240bcf00a4ef7702c07bcd8f4e5f97c"; - hash = "sha256-7SPRQMPgdvP7J3HCf7F1eXxZjUH5vCYZ9UOwTUFMLp0="; + tag = finalAttrs.version; + hash = "sha256-1hVPtCPwfovCtA6aagViUJkYTCFuiFkOqGEqMHIoZe8="; }; + patches = [ + (fetchpatch { + name = "ffmpeg-8-fix.patch"; + url = "https://github.com/dirkvdb/ffmpegthumbnailer/commit/df789ec326ae0f2c619f91c8f2fc8b5e45b50a70.patch"; + hash = "sha256-PArrcKuaWWA6/H59MbdC36B57GSvvp5sHz24QLTBZYw="; + }) + ]; + nativeBuildInputs = [ cmake pkg-config @@ -60,4 +69,4 @@ stdenv.mkDerivation { platforms = platforms.unix; mainProgram = "ffmpegthumbnailer"; }; -} +}) From 727314ed78a954f24f122bbd10ff10561bb722f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 8 Nov 2025 09:18:09 +0100 Subject: [PATCH 2/3] python3Packages.protobuf: check version compatibility Let's avoid situations from #459656 early, e.g. log https://hydra.nixos.org/build/312538974/nixlog/1/tail Note that python3Packages.protobuf is in protobuf.tests, so that we should notice when updating protobuf in particular. --- pkgs/development/python-modules/protobuf/6.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/protobuf/6.nix b/pkgs/development/python-modules/protobuf/6.nix index d3aa019da237..f5ce6a82e716 100644 --- a/pkgs/development/python-modules/protobuf/6.nix +++ b/pkgs/development/python-modules/protobuf/6.nix @@ -23,8 +23,12 @@ buildPythonPackage rec { protobuf ]; - # the pypi source archive does not ship tests - doCheck = false; + doCheck = + # https://protobuf.dev/support/cross-version-runtime-guarantee/#backwards + # The non-python protobuf provides the protoc binary which must not be newer. + assert lib.versionAtLeast version ("6." + protobuf.version); + # the pypi source archive does not ship tests + false; pythonImportsCheck = [ "google.protobuf" @@ -45,7 +49,9 @@ buildPythonPackage rec { meta = { description = "Protocol Buffers are Google's data interchange format"; homepage = "https://developers.google.com/protocol-buffers/"; - changelog = "https://github.com/protocolbuffers/protobuf/releases/v${version}"; + changelog = "https://github.com/protocolbuffers/protobuf/releases/v${ + builtins.substring 2 (-1) version + }"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ GaetanLepage ]; }; From 405393e439446a86c585ee69929ef82e306b3a2c Mon Sep 17 00:00:00 2001 From: Jan Solanti Date: Sat, 8 Nov 2025 17:19:29 +0200 Subject: [PATCH 3/3] blender: pin to ffmpeg 7 to fix build --- pkgs/by-name/bl/blender/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/bl/blender/package.nix b/pkgs/by-name/bl/blender/package.nix index 8645982537e9..9b7fe43f35e6 100644 --- a/pkgs/by-name/bl/blender/package.nix +++ b/pkgs/by-name/bl/blender/package.nix @@ -16,7 +16,7 @@ embree, fetchzip, fetchFromGitHub, - ffmpeg, + ffmpeg_7, fftw, fftwFloat, freetype, @@ -239,7 +239,7 @@ stdenv'.mkDerivation (finalAttrs: { buildInputs = [ alembic boost - ffmpeg + ffmpeg_7 fftw fftwFloat freetype