Skip to content

Commit e45eb8e

Browse files
committed
Revert "ffmpeg: Add a -bare variant"
See: * <#489027 (comment)> * <https://matrix.to/#/!CTCrFzsBPYmDLmrja4:0upti.me/$oMzTrXOUFxxd-BU6oHHpqUKFH8ABMBrSPfjiVFiDTFI?via=nixos.org&via=matrix.org&via=tchncs.de> I think this variant is probably not warranted unless we have some concrete whole‐system numbers to justify the extra complexity in dependency specification, especially considering that it will likely lead to more copies of FFmpeg on many systems if used widely. This reverts commit 9ad38b5.
1 parent cc6c74b commit e45eb8e

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

pkgs/development/libraries/ffmpeg/default.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ rec {
5454
ffmpeg_8 = mkFFmpeg v8 "small";
5555
ffmpeg_8-headless = mkFFmpeg v8 "headless";
5656
ffmpeg_8-full = mkFFmpeg v8 "full";
57-
ffmpeg_8-bare = mkFFmpeg v8 "bare";
5857

5958
# Please make sure this is updated to new major versions once they
6059
# build and work on all the major platforms. If absolutely necessary
@@ -69,5 +68,4 @@ rec {
6968
ffmpeg = ffmpeg_8;
7069
ffmpeg-headless = ffmpeg_8-headless;
7170
ffmpeg-full = ffmpeg_8-full;
72-
ffmpeg-bare = ffmpeg_8-bare;
7371
}

pkgs/development/libraries/ffmpeg/generic.nix

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222

2323
ffmpegVariant ? "small", # Decides which dependencies are enabled by default
2424

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-
3025
# Build with headless deps; excludes dependencies that are only necessary for
3126
# GUI applications. To be used for purposes that don't generally need such
3227
# components and i.e. only depend on libav
@@ -57,7 +52,7 @@
5752
withAvisynth ? withFullDeps, # AviSynth script files reading
5853
withBluray ? withHeadlessDeps, # BluRay reading
5954
withBs2b ? withFullDeps, # bs2b DSP library
60-
withBzlib ? withBareDeps,
55+
withBzlib ? withHeadlessDeps,
6156
withCaca ? withFullDeps, # Textual display (ASCII art)
6257
withCdio ? withFullDeps && withGPL, # Audio CD grabbing
6358
withCelt ? withFullDeps, # CELT decoder
@@ -174,7 +169,7 @@
174169
withXml2 ? withHeadlessDeps, # libxml2 support, for IMF and DASH demuxers
175170
withXvid ? withHeadlessDeps && withGPL, # Xvid encoder, native encoder exists
176171
withZimg ? withHeadlessDeps,
177-
withZlib ? withBareDeps,
172+
withZlib ? withHeadlessDeps,
178173
withZmq ? withFullDeps, # Message passing
179174
withZvbi ? withHeadlessDeps, # Teletext support
180175

@@ -206,14 +201,14 @@
206201
buildQtFaststart ? withFullDeps, # Build qt-faststart executable
207202
withBin ? buildFfmpeg || buildFfplay || buildFfprobe || buildQtFaststart,
208203
# Library options
209-
buildAvcodec ? withBareDeps, # Build avcodec library
204+
buildAvcodec ? withHeadlessDeps, # Build avcodec library
210205
buildAvdevice ? withHeadlessDeps, # Build avdevice library
211206
buildAvfilter ? withHeadlessDeps, # Build avfilter library
212-
buildAvformat ? withBareDeps, # Build avformat library
207+
buildAvformat ? withHeadlessDeps, # Build avformat library
213208
# Deprecated but depended upon by some packages.
214209
# https://github.com/NixOS/nixpkgs/pull/211834#issuecomment-1417435991)
215210
buildAvresample ? withHeadlessDeps && lib.versionOlder version "5", # Build avresample library
216-
buildAvutil ? withBareDeps, # Build avutil library
211+
buildAvutil ? withHeadlessDeps, # Build avutil library
217212
# Libpostproc is only available on versions lower than 8.0
218213
# https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/8c920c4c396163e3b9a0b428dd550d3c986236aa
219214
buildPostproc ? withHeadlessDeps && lib.versionOlder version "8.0", # Build postproc library
@@ -399,7 +394,6 @@ let
399394
in
400395

401396
assert lib.elem ffmpegVariant [
402-
"bare"
403397
"headless"
404398
"small"
405399
"full"
@@ -998,8 +992,7 @@ stdenv.mkDerivation (
998992
};
999993

1000994
# 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;
1003996

1004997
# Fails with SIGABRT otherwise FIXME: Why?
1005998
checkPhase =

pkgs/top-level/all-packages.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6296,11 +6296,9 @@ with pkgs;
62966296
ffmpeg_8
62976297
ffmpeg_8-headless
62986298
ffmpeg_8-full
6299-
ffmpeg_8-bare
63006299
ffmpeg
63016300
ffmpeg-headless
63026301
ffmpeg-full
6303-
ffmpeg-bare
63046302
;
63056303

63066304
fftwSinglePrec = fftw.override { precision = "single"; };

0 commit comments

Comments
 (0)