auto-editor: 29.4.0 -> 29.6.1 (#476780)

This commit is contained in:
Toma
2026-01-09 15:20:25 +00:00
committed by GitHub
+23 -23
View File
@@ -1,12 +1,17 @@
{
lib,
stdenv,
config,
buildNimPackage,
fetchFromGitHub,
withHEVC ? true,
withWhisper ? false,
withWhisper ? false, # TODO: Investigate linker failure. See PR 476678
withVpx ? true,
withSvtAv1 ? true,
withCuda ? false,
ffmpeg,
ffmpeg-full,
yt-dlp,
lame,
libopus,
@@ -15,6 +20,7 @@
x265,
dav1d,
svt-av1,
libvpl,
whisper-cpp,
python3,
@@ -23,42 +29,36 @@
buildNimPackage rec {
pname = "auto-editor";
version = "29.4.0";
version = "29.6.1";
src = fetchFromGitHub {
owner = "WyattBlue";
repo = "auto-editor";
tag = version;
hash = "sha256-DzgR/GyVIUq6Dfes6OnTdYO/vyGBPcKSeD2IikF7sIM=";
hash = "sha256-7/ey7nZdy1SnGdW5LjX7dtxyqqvrTuIvtJXMXYVYB6k=";
};
lockFile = ./lock.json;
buildInputs = [
ffmpeg
ffmpeg-full
lame
libopus
libvpx
x264
dav1d
svt-av1
]
++ lib.optionals withHEVC [
x265
]
++ lib.optionals withWhisper [
whisper-cpp
];
++ lib.optionals withHEVC [ x265 ]
++ lib.optionals withWhisper [ whisper-cpp ]
++ lib.optionals withVpx [ libvpx ]
++ lib.optionals withSvtAv1 [ svt-av1 ]
++ lib.optionals stdenv.hostPlatform.isLinux [ libvpl ];
nimFlags = [
"--passc:-Wno-incompatible-pointer-types"
]
++ lib.optionals withHEVC [
"-d:enable_hevc"
]
++ lib.optionals withWhisper [
"-d:enable_whisper"
];
nimFlags =
lib.optionals withHEVC [ "-d:enable_hevc" ]
++ lib.optionals withWhisper [ "-d:enable_whisper" ]
++ lib.optionals withVpx [ "-d:enable_vpx" ]
++ lib.optionals withSvtAv1 [ "-d:enable_svtav1" ]
++ lib.optionals withCuda [ "-d:enable_cuda" ];
postPatch = ''
substituteInPlace src/log.nim \
@@ -77,7 +77,7 @@ buildNimPackage rec {
checkPhase = ''
runHook preCheck
eval "nim r --nimcache:$NIX_BUILD_TOP/nimcache $nimFlags $src/tests/rationals.nim"
eval "nim r --nimcache:$NIX_BUILD_TOP/nimcache $nimFlags $src/tests/unit.nim"
substituteInPlace tests/test.py \
--replace-fail '"./auto-editor"' "\"$out/bin/main\""