+140
-85
pkgs/applications/graphics/ImageMagick/default.nix
+140
-85
pkgs/applications/graphics/ImageMagick/default.nix
···-else if stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "x86_64-darwin" then "x86-64"-else if stdenv.hostPlatform.system == "aarch64-linux" || stdenv.hostPlatform.system == "aarch64-darwin" then "aarch64"·········-# Q16HDRI = 16 bit quantum depth with HDRI support, and is the default ImageMagick configuration-grep -v '/nix/store' $dev/lib/ImageMagick-*/config-Q16HDRI/configure.xml > $configDestination/configure.xml···
···+stdenv.hostPlatform.system == "aarch64-linux" || stdenv.hostPlatform.system == "aarch64-darwin"·········+# Q16HDRI = 16 bit quantum depth with HDRI support, and is the default ImageMagick configuration+grep -v '/nix/store' $dev/lib/ImageMagick-*/config-Q16HDRI/configure.xml > $configDestination/configure.xml···
+1
-1
pkgs/by-name/al/alsa-lib/package.nix
+1
-1
pkgs/by-name/al/alsa-lib/package.nix
+1
-1
pkgs/by-name/al/alsa-topology-conf/package.nix
+1
-1
pkgs/by-name/al/alsa-topology-conf/package.nix
+26
-21
pkgs/by-name/al/alsa-ucm-conf/package.nix
+26
-21
pkgs/by-name/al/alsa-ucm-conf/package.nix
······
······
+1
-1
pkgs/by-name/fr/frei0r/package.nix
+1
-1
pkgs/by-name/fr/frei0r/package.nix
+1
pkgs/by-name/li/libcamera/package.nix
+1
pkgs/by-name/li/libcamera/package.nix
···
+1
-1
pkgs/by-name/li/libvisual/package.nix
+1
-1
pkgs/by-name/li/libvisual/package.nix
+3
-6
pkgs/by-name/qu/quirc/package.nix
+3
-6
pkgs/by-name/qu/quirc/package.nix
······
······
+7
-3
pkgs/by-name/so/socat/package.nix
+7
-3
pkgs/by-name/so/socat/package.nix
+1
-1
pkgs/by-name/x2/x265/package.nix
+1
-1
pkgs/by-name/x2/x265/package.nix
+1
-1
pkgs/by-name/xa/xavs/package.nix
+1
-1
pkgs/by-name/xa/xavs/package.nix
+946
-864
pkgs/development/libraries/ffmpeg/generic.nix
+946
-864
pkgs/development/libraries/ffmpeg/generic.nix
···-{ lib, config, stdenv, buildPackages, removeReferencesTo, addDriverRunpath, pkg-config, perl, texinfo, texinfo6, yasm-, withAmf ? withHeadlessDeps && lib.meta.availableOn stdenv.hostPlatform amf # AMD Media Framework video encoding-, withAribcaption ? withFullDeps && lib.versionAtLeast version "6.1" # ARIB STD-B24 Caption Decoder/Renderer-, withAss ? withHeadlessDeps && stdenv.hostPlatform == stdenv.buildPlatform # (Advanced) SubStation Alpha subtitle rendering-, withDvdnav ? withFullDeps && withGPL && lib.versionAtLeast version "7" # needed for DVD demuxing-, withDvdread ? withFullDeps && withGPL && lib.versionAtLeast version "7" # needed for DVD demuxing-, withNvcodec ? withHeadlessDeps && (with stdenv; !isDarwin && !isAarch32 && !hostPlatform.isRiscV && hostPlatform == buildPlatform) # dynamically linked Nvidia code-, withHarfbuzz ? withHeadlessDeps && lib.versionAtLeast version "6.1" # Needed for drawtext filter-, withLcevcdec ? false && lib.versionAtLeast version "7.1" # LCEVC decoding # FIXME currently makes ffmpeg crash in any operation on non-AVX CPUs-, withMfx ? withFullDeps && (with stdenv.hostPlatform; isLinux && !isAarch) # Hardware acceleration via intel-media-sdk/libmfx-, withNpp ? withFullDeps && withUnfree && config.cudaSupport # Nvidia Performance Primitives-based code-, withPlacebo ? withFullDeps && !stdenv.hostPlatform.isDarwin # libplacebo video processing library-, withShaderc ? withFullDeps && !stdenv.hostPlatform.isDarwin && lib.versionAtLeast version "5.0"-, withSvtav1 ? withHeadlessDeps && !stdenv.hostPlatform.isAarch64 && !stdenv.hostPlatform.isMinGW # AV1 encoder/decoder (focused on speed and correctness)-, withTensorflow ? false # Tensorflow dnn backend support (Increases closure size by ~390 MiB)-, withVaapi ? withHeadlessDeps && (with stdenv; isLinux || isFreeBSD) # Vaapi hardware acceleration-, withVmaf ? withFullDeps && !stdenv.hostPlatform.isAarch64 && lib.versionAtLeast version "5" # Netflix's VMAF (Video Multi-Method Assessment Fusion)-, withVpx ? withHeadlessDeps && stdenv.buildPlatform == stdenv.hostPlatform # VP8 & VP9 de/encoding-, withXevd ? withFullDeps && lib.versionAtLeast version "7.1" && !xevd.meta.broken # MPEG-5 EVC decoding-, withXeve ? withFullDeps && lib.versionAtLeast version "7.1" && !xeve.meta.broken # MPEG-5 EVC encoding-, withRuntimeCPUDetection ? true # Detect CPU capabilities at runtime (disable to compile natively)-, withSwscaleAlpha ? buildSwscale # Alpha channel support in swscale. You probably want this when buildSwscale.-, withHardcodedTables ? withHeadlessDeps # Hardcode decode tables instead of runtime generation-, buildAvresample ? withHeadlessDeps && lib.versionOlder version "5" # Build avresample library-* If adding a new branch, note any configure flags that were added, changed, or deprecated/removed-url = "https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/cb049d377f54f6b747667a93e4b719380c3e9475";-url = "https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/99debe5f823f45a482e1dc08de35879aa9c74bd2";-url = "https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/3bb00c0a420c3ce83c6fafee30270d69622ccad7";-url = "https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/4adb93dff05dd947878c67784d98c9a4e13b57a7";-url = "https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/737ede405b11a37fdd61d19cf25df296a0cb0b75";-url = "https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/b1942734c7cbcdc9034034373abcc9ecb9644c47";-url = "https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/5f87a68cf70dafeab2fb89b42e41a4c29053b89b";-url = "https://gitlab.archlinux.org/archlinux/packaging/packages/ffmpeg/-/raw/a02c1a15706ea832c0d52a4d66be8fb29499801a/add-av_stream_get_first_dts-for-chromium.patch";-"--target_os=${if stdenv.hostPlatform.isMinGW then "mingw64" else stdenv.hostPlatform.parsed.kernel.name}"-toStrip = map placeholder (lib.remove "data" finalAttrs.outputs) # We want to keep references to the data dir.-# Texinfo version 7.1 introduced breaking changes, which older versions of ffmpeg do not handle.-++ optionals withNvcodec [ (if (lib.versionAtLeast version "6") then nv-codec-headers-12 else nv-codec-headers) ]-++ optionals withPlacebo [ (if (lib.versionAtLeast version "6.1") then libplacebo else libplacebo_5) vulkan-headers ]-ldLibraryPathEnv = if stdenv.hostPlatform.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH";-outputs = optionals withBin [ "bin" ] # The first output is the one that gets symlinked by default!-++ [ "data" "out" ] # We need an "out" output because we get an error otherwise. It's just an empty dir.-+ optionalString (versionAtLeast version "5.0" && withVulkan && !stdenv.hostPlatform.isMinGW) ''-patchelf $lib/lib/libavcodec.so --add-needed libvulkan.so --add-rpath ${lib.makeLibraryPath [ vulkan-loader ]}-description = "Complete, cross-platform solution to record, convert and stream audio and video";
···+withAmf ? withHeadlessDeps && lib.meta.availableOn stdenv.hostPlatform amf, # AMD Media Framework video encoding+withAribcaption ? withFullDeps && lib.versionAtLeast version "6.1", # ARIB STD-B24 Caption Decoder/Renderer+withAss ? withHeadlessDeps && stdenv.hostPlatform == stdenv.buildPlatform, # (Advanced) SubStation Alpha subtitle rendering+withDvdnav ? withFullDeps && withGPL && lib.versionAtLeast version "7", # needed for DVD demuxing+withDvdread ? withFullDeps && withGPL && lib.versionAtLeast version "7", # needed for DVD demuxing+withHarfbuzz ? withHeadlessDeps && lib.versionAtLeast version "6.1", # Needed for drawtext filter+withLcevcdec ? false && lib.versionAtLeast version "7.1", # LCEVC decoding # FIXME currently makes ffmpeg crash in any operation on non-AVX CPUs+withMfx ? withFullDeps && (with stdenv.hostPlatform; isLinux && !isAarch), # Hardware acceleration via intel-media-sdk/libmfx+withNpp ? withFullDeps && withUnfree && config.cudaSupport, # Nvidia Performance Primitives-based code+withPlacebo ? withFullDeps && !stdenv.hostPlatform.isDarwin, # libplacebo video processing library+withRubberband ? withFullDeps && withGPL && !stdenv.hostPlatform.isFreeBSD, # Rubberband filter+withShaderc ? withFullDeps && !stdenv.hostPlatform.isDarwin && lib.versionAtLeast version "5.0",+withSvtav1 ? withHeadlessDeps && !stdenv.hostPlatform.isAarch64 && !stdenv.hostPlatform.isMinGW, # AV1 encoder/decoder (focused on speed and correctness)+withVaapi ? withHeadlessDeps && (with stdenv; isLinux || isFreeBSD), # Vaapi hardware acceleration+withVmaf ? withFullDeps && !stdenv.hostPlatform.isAarch64 && lib.versionAtLeast version "5", # Netflix's VMAF (Video Multi-Method Assessment Fusion)+withVpx ? withHeadlessDeps && stdenv.buildPlatform == stdenv.hostPlatform, # VP8 & VP9 de/encoding+withXevd ? withFullDeps && lib.versionAtLeast version "7.1" && !xevd.meta.broken, # MPEG-5 EVC decoding+withXeve ? withFullDeps && lib.versionAtLeast version "7.1" && !xeve.meta.broken, # MPEG-5 EVC encoding+withRuntimeCPUDetection ? true, # Detect CPU capabilities at runtime (disable to compile natively)+withSwscaleAlpha ? buildSwscale, # Alpha channel support in swscale. You probably want this when buildSwscale.+withHardcodedTables ? withHeadlessDeps, # Hardcode decode tables instead of runtime generation+buildAvresample ? withHeadlessDeps && lib.versionOlder version "5", # Build avresample library+If adding a new branch, note any configure flags that were added, changed, or deprecated/removed+assert buildAvdevice -> buildAvformat && buildAvcodec && buildAvutil; # configure flag since 0.6+url = "https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/cb049d377f54f6b747667a93e4b719380c3e9475";+url = "https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/99debe5f823f45a482e1dc08de35879aa9c74bd2";+url = "https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/3bb00c0a420c3ce83c6fafee30270d69622ccad7";+url = "https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/4adb93dff05dd947878c67784d98c9a4e13b57a7";+url = "https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/737ede405b11a37fdd61d19cf25df296a0cb0b75";+url = "https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/b1942734c7cbcdc9034034373abcc9ecb9644c47";+url = "https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/5f87a68cf70dafeab2fb89b42e41a4c29053b89b";+url = "https://gitlab.archlinux.org/archlinux/packaging/packages/ffmpeg/-/raw/a02c1a15706ea832c0d52a4d66be8fb29499801a/add-av_stream_get_first_dts-for-chromium.patch";+map placeholder (lib.remove "data" finalAttrs.outputs) # We want to keep references to the data dir.+# Texinfo version 7.1 introduced breaking changes, which older versions of ffmpeg do not handle.+++ optionals withDc1394 ([ libdc1394 ] ++ (lib.optional stdenv.hostPlatform.isLinux libraw1394))+buildFlags = [ "all" ] ++ optional buildQtFaststart "tools/qt-faststart"; # Build qt-faststart executable+ldLibraryPathEnv = if stdenv.hostPlatform.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH";++ optionalString (versionAtLeast version "5.0" && withVulkan && !stdenv.hostPlatform.isMinGW) ''+description = "Complete, cross-platform solution to record, convert and stream audio and video";
+1
-1
pkgs/development/libraries/libdvdcss/default.nix
+1
-1
pkgs/development/libraries/libdvdcss/default.nix
+1
-1
pkgs/development/libraries/libdvdread/default.nix
+1
-1
pkgs/development/libraries/libdvdread/default.nix
+443
-350
pkgs/development/libraries/opencv/4.x.nix
+443
-350
pkgs/development/libraries/opencv/4.x.nix
···-, enableCudnn ? false # NOTE: CUDNN has a large impact on closure size so we disable it by default-inherit (lib.strings) cmakeBool cmakeFeature cmakeOptionType concatStrings concatStringsSep optionalString;······#multithreaded openblas conflicts with opencv multithreading, which manifest itself in hung tests······# Ensures that we use the system OpenEXR rather than the vendored copy of the source included with OpenCV.······-# "OpenCV disables pkg-config to avoid using of host libraries. Consider using PKG_CONFIG_LIBDIR to specify target SYSROOT"-(cmakeBool "WITH_JASPER" false) # OpenCV falls back to a vendored copy of Jasper when OpenJPEG is disabled-(cmakeOptionType "path" "NVIDIA_OPTICAL_FLOW_2_0_HEADERS_PATH" nvidia-optical-flow-sdk.outPath)······-python -m pip wheel --verbose --no-index --no-deps --no-clean --no-build-isolation --wheel-dir dist .-inherit enableGStreamer enableGtk2 enableGtk3 runAccuracyTests runPerformanceTests testDataSrc;···
···+enableCudnn ? false, # NOTE: CUDNN has a large impact on closure size so we disable it by default······#multithreaded openblas conflicts with opencv multithreading, which manifest itself in hung tests······# Ensures that we use the system OpenEXR rather than the vendored copy of the source included with OpenCV.······+# "OpenCV disables pkg-config to avoid using of host libraries. Consider using PKG_CONFIG_LIBDIR to specify target SYSROOT"+(cmakeBool "WITH_JASPER" false) # OpenCV falls back to a vendored copy of Jasper when OpenJPEG is disabled+(cmakeOptionType "path" "NVIDIA_OPTICAL_FLOW_2_0_HEADERS_PATH" nvidia-optical-flow-sdk.outPath)······+python -m pip wheel --verbose --no-index --no-deps --no-clean --no-build-isolation --wheel-dir dist .···
+8
pkgs/development/libraries/science/math/openblas/default.nix
+8
pkgs/development/libraries/science/math/openblas/default.nix