|
22 | 22 |
|
23 | 23 | ffmpegVariant ? "small", # Decides which dependencies are enabled by default |
24 | 24 |
|
25 | | - # Build nothing by default. Enable all features that are needed. |
26 | | - # To be used for purposes that don't require external dependencies, like `unpaper` |
27 | | - # that uses ffmpeg for image processing. |
28 | | - withBareDeps ? ffmpegVariant == "bare" || withHeadlessDeps, |
29 | | - |
30 | 25 | # Build with headless deps; excludes dependencies that are only necessary for |
31 | 26 | # GUI applications. To be used for purposes that don't generally need such |
32 | 27 | # components and i.e. only depend on libav |
|
57 | 52 | withAvisynth ? withFullDeps, # AviSynth script files reading |
58 | 53 | withBluray ? withHeadlessDeps, # BluRay reading |
59 | 54 | withBs2b ? withFullDeps, # bs2b DSP library |
60 | | - withBzlib ? withBareDeps, |
| 55 | + withBzlib ? withHeadlessDeps, |
61 | 56 | withCaca ? withFullDeps, # Textual display (ASCII art) |
62 | 57 | withCdio ? withFullDeps && withGPL, # Audio CD grabbing |
63 | 58 | withCelt ? withFullDeps, # CELT decoder |
|
174 | 169 | withXml2 ? withHeadlessDeps, # libxml2 support, for IMF and DASH demuxers |
175 | 170 | withXvid ? withHeadlessDeps && withGPL, # Xvid encoder, native encoder exists |
176 | 171 | withZimg ? withHeadlessDeps, |
177 | | - withZlib ? withBareDeps, |
| 172 | + withZlib ? withHeadlessDeps, |
178 | 173 | withZmq ? withFullDeps, # Message passing |
179 | 174 | withZvbi ? withHeadlessDeps, # Teletext support |
180 | 175 |
|
|
206 | 201 | buildQtFaststart ? withFullDeps, # Build qt-faststart executable |
207 | 202 | withBin ? buildFfmpeg || buildFfplay || buildFfprobe || buildQtFaststart, |
208 | 203 | # Library options |
209 | | - buildAvcodec ? withBareDeps, # Build avcodec library |
| 204 | + buildAvcodec ? withHeadlessDeps, # Build avcodec library |
210 | 205 | buildAvdevice ? withHeadlessDeps, # Build avdevice library |
211 | 206 | buildAvfilter ? withHeadlessDeps, # Build avfilter library |
212 | | - buildAvformat ? withBareDeps, # Build avformat library |
| 207 | + buildAvformat ? withHeadlessDeps, # Build avformat library |
213 | 208 | # Deprecated but depended upon by some packages. |
214 | 209 | # https://github.com/NixOS/nixpkgs/pull/211834#issuecomment-1417435991) |
215 | 210 | buildAvresample ? withHeadlessDeps && lib.versionOlder version "5", # Build avresample library |
216 | | - buildAvutil ? withBareDeps, # Build avutil library |
| 211 | + buildAvutil ? withHeadlessDeps, # Build avutil library |
217 | 212 | # Libpostproc is only available on versions lower than 8.0 |
218 | 213 | # https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/8c920c4c396163e3b9a0b428dd550d3c986236aa |
219 | 214 | buildPostproc ? withHeadlessDeps && lib.versionOlder version "8.0", # Build postproc library |
|
399 | 394 | in |
400 | 395 |
|
401 | 396 | assert lib.elem ffmpegVariant [ |
402 | | - "bare" |
403 | 397 | "headless" |
404 | 398 | "small" |
405 | 399 | "full" |
@@ -998,8 +992,7 @@ stdenv.mkDerivation ( |
998 | 992 | }; |
999 | 993 |
|
1000 | 994 | # tests linking broken with shaderc after https://github.com/NixOS/nixpkgs/pull/477464/changes/5a47b12dfcd1b909ba35778a866394430054319a |
1001 | | - # tests need at least the headless deps to compile |
1002 | | - doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform && !withShaderc && withHeadlessDeps; |
| 995 | + doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform && !withShaderc; |
1003 | 996 |
|
1004 | 997 | # Fails with SIGABRT otherwise FIXME: Why? |
1005 | 998 | checkPhase = |
|
0 commit comments