···1919, opencvSupport ? false
2020, opencv4
2121, faad2
2222+, lcevcdec
2223, ldacbt
2324, liblc3
2425, libass
···105106, CoreVideo
106107, Foundation
107108, MediaToolbox
109109+, directoryListingUpdater
108110, enableGplPlugins ? true
109111, bluezSupport ? stdenv.hostPlatform.isLinux
110112# Causes every application using GstDeviceMonitor to send mDNS queries every 2 seconds
···114116, guiSupport ? true
115117}:
116118117117-stdenv.mkDerivation rec {
119119+stdenv.mkDerivation (finalAttrs: {
118120 pname = "gst-plugins-bad";
119119- version = "1.24.10";
121121+ version = "1.26.0";
120122121121- outputs = [ "out" "dev" ];
123123+ outputs = [
124124+ "out"
125125+ "dev"
126126+ ];
122127123128 src = fetchurl {
124124- url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz";
125125- hash = "sha256-FwfjEDlQybrtNkqK8roEldaxE/zTbhBi3aX1grj4kE0=";
129129+ url = "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${finalAttrs.version}.tar.xz";
130130+ hash = "sha256-+Ch6hMX2Y2ilpQ2l+WmZSgLEfyAiD/4coxVBk+Za8hY=";
126131 };
127132128133 patches = [
···130135 (replaceVars ./fix-paths.patch {
131136 inherit (addDriverRunpath) driverLink;
132137 })
133133- # Add support for newer AJA SDK from next GStreamer release
138138+139139+ # Fix Requires in gstreamer-analytics-1.0.pc
140140+ # https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8661
134141 (fetchpatch {
135135- url = "https://github.com/GStreamer/gstreamer/commit/d68ac0db571f44cae42b57c876436b3b09df616b.patch";
136136- hash = "sha256-ZXwlHzuPT8kUKt5+HkqFH5tzL9l5NusDXImabj4fBbI=";
137137- relative = "subprojects/${pname}";
142142+ url = "https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/bc93bbf5c87ec994ea136bb40accc09dfa35ae98.patch";
143143+ stripLen = 2;
144144+ hash = "sha256-QQDpHe363iPxTuthITRbLUKaAXS2F9s5zfCn/ps14WE=";
138145 })
139146 ];
140147···172179 curl.dev
173180 fdk_aac
174181 gsm
182182+ lcevcdec
175183 libaom
176184 libdc1394
177185 libde265
···269277270278 mesonFlags = [
271279 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users
272272- "-Dglib-asserts=disabled" # asserts should be disabled on stable releases
280280+ "-Dglib_debug=disabled" # cast checks should be disabled on stable releases
273281274282 "-Damfcodec=disabled" # Windows-only
283283+ "-Dandroidmedia=disabled" # Requires Android system.
275284 "-Davtp=disabled"
285285+ "-Dcuda-nvmm=disabled"
276286 "-Ddirectshow=disabled" # Windows-only
277287 "-Dqt6d3d11=disabled" # Windows-only
278288 "-Ddts=disabled" # required `libdca` library not packaged in nixpkgs as of writing, and marked as "BIG FAT WARNING: libdca is still in early development"
279289 "-Dzbar=${if enableZbar then "enabled" else "disabled"}"
280290 "-Dfaac=${if faacSupport then "enabled" else "disabled"}"
281291 "-Diqa=disabled" # required `dssim` library not packaging in nixpkgs as of writing, also this is AGPL so update license when adding support
292292+ "-Dlcevcencoder=disabled" # not packaged in nixpkgs as of writing
282293 "-Dmagicleap=disabled" # required `ml_audio` library not packaged in nixpkgs as of writing
283294 "-Dmsdk=disabled" # not packaged in nixpkgs as of writing / no Windows support
284295 # As of writing, with `libmpcdec` in `buildInputs` we get
···292303 # is needed, and then patching upstream to find it (though it probably
293304 # already works on Arch?).
294305 "-Dmusepack=disabled"
306306+ "-Dnvcomp=disabled"
307307+ "-Dnvdswrapper=disabled"
295308 "-Dopenni2=disabled" # not packaged in nixpkgs as of writing
296309 "-Dopensles=disabled" # not packaged in nixpkgs as of writing
297310 "-Dsvthevcenc=disabled" # required `SvtHevcEnc` library not packaged in nixpkgs as of writing
311311+ "-Dsvtjpegxs=disabled" # not packaged in nixpkgs as of writing
298312 "-Dteletext=disabled" # required `zvbi` library not packaged in nixpkgs as of writing
299313 "-Dtinyalsa=disabled" # not packaged in nixpkgs as of writing
300314 "-Dvoamrwbenc=disabled" # required `vo-amrwbenc` library not packaged in nixpkgs as of writing
···369383370384 doCheck = false; # fails 20 out of 58 tests, expensive
371385386386+ passthru = {
387387+ updateScript = directoryListingUpdater { };
388388+ };
389389+372390 meta = with lib; {
373391 description = "GStreamer Bad Plugins";
374392 mainProgram = "gst-transcoder-1.0";
···383401 platforms = platforms.linux ++ platforms.darwin;
384402 maintainers = with maintainers; [ matthewbauer ];
385403 };
386386-}
404404+})