lol

Merge pull request #159461 from dali99/libaom-tunes

libaom: Add support for butteraugli and vmaf tunes

authored by

Sandro and committed by
GitHub
ce660322 d40b996c

+28 -11
+14 -2
pkgs/development/libraries/libaom/default.nix
··· 1 - { lib, stdenv, fetchzip, yasm, perl, cmake, pkg-config, python3 }: 2 3 stdenv.mkDerivation rec { 4 pname = "libaom"; ··· 16 yasm perl cmake pkg-config python3 17 ]; 18 19 preConfigure = '' 20 # build uses `git describe` to set the build version 21 cat > $NIX_BUILD_TOP/git << "EOF" ··· 32 cmakeFlags = [ 33 "-DBUILD_SHARED_LIBS=ON" 34 "-DENABLE_TESTS=OFF" 35 ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ 36 # CPU detection isn't supported on Darwin and breaks the aarch64-darwin build: 37 "-DCONFIG_RUNTIME_CPU_DETECT=0" ··· 58 ''; 59 homepage = "https://aomedia.org/av1-features/get-started/"; 60 changelog = "https://aomedia.googlesource.com/aom/+/refs/tags/v${version}/CHANGELOG"; 61 - maintainers = with maintainers; [ primeos kiloreux ]; 62 platforms = platforms.all; 63 license = licenses.bsd2; 64 };
··· 1 + { lib, stdenv, fetchzip, yasm, perl, cmake, pkg-config, python3 2 + , enableButteraugli ? false, libjxl, libhwy # Broken 3 + , enableVmaf ? true, libvmaf 4 + }: 5 6 stdenv.mkDerivation rec { 7 pname = "libaom"; ··· 19 yasm perl cmake pkg-config python3 20 ]; 21 22 + buildInputs = lib.optionals enableButteraugli [ 23 + libjxl 24 + libhwy 25 + ] ++ lib.optional enableVmaf libvmaf; 26 + 27 preConfigure = '' 28 # build uses `git describe` to set the build version 29 cat > $NIX_BUILD_TOP/git << "EOF" ··· 40 cmakeFlags = [ 41 "-DBUILD_SHARED_LIBS=ON" 42 "-DENABLE_TESTS=OFF" 43 + ] ++ lib.optionals enableButteraugli [ 44 + "-DCONFIG_TUNE_BUTTERAUGLI=1" 45 + ] ++ lib.optionals enableVmaf [ 46 + "-DCONFIG_TUNE_VMAF=1" 47 ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ 48 # CPU detection isn't supported on Darwin and breaks the aarch64-darwin build: 49 "-DCONFIG_RUNTIME_CPU_DETECT=0" ··· 70 ''; 71 homepage = "https://aomedia.org/av1-features/get-started/"; 72 changelog = "https://aomedia.googlesource.com/aom/+/refs/tags/v${version}/CHANGELOG"; 73 + maintainers = with maintainers; [ primeos kiloreux dandellion ]; 74 platforms = platforms.all; 75 license = licenses.bsd2; 76 };
+10 -8
pkgs/development/libraries/libjxl/default.nix
··· 1 { stdenv, lib, fetchFromGitHub 2 , fetchpatch 3 - , asciidoc 4 , brotli 5 , cmake 6 - , graphviz 7 - , doxygen 8 , giflib 9 , gperftools 10 , gtest ··· 14 , libwebp 15 , openexr 16 , pkg-config 17 - , python3 18 , zlib 19 }: 20 21 stdenv.mkDerivation rec { ··· 50 ]; 51 52 nativeBuildInputs = [ 53 - asciidoc # for docs 54 cmake 55 - graphviz # for docs via doxygen component `dot` 56 - doxygen # for docs 57 gtest 58 pkg-config 59 - python3 # for docs 60 ]; 61 62 # Functionality not currently provided by this package
··· 1 { stdenv, lib, fetchFromGitHub 2 , fetchpatch 3 , brotli 4 , cmake 5 , giflib 6 , gperftools 7 , gtest ··· 11 , libwebp 12 , openexr 13 , pkg-config 14 , zlib 15 + , buildDocs ? true 16 + , asciidoc 17 + , graphviz 18 + , doxygen 19 + , python3 20 }: 21 22 stdenv.mkDerivation rec { ··· 51 ]; 52 53 nativeBuildInputs = [ 54 cmake 55 gtest 56 pkg-config 57 + ] ++ lib.optionals buildDocs [ 58 + asciidoc 59 + graphviz 60 + doxygen 61 + python3 62 ]; 63 64 # Functionality not currently provided by this package
+4 -1
pkgs/top-level/all-packages.nix
··· 18187 18188 libantlr3c = callPackage ../development/libraries/libantlr3c {}; 18189 18190 - libaom = callPackage ../development/libraries/libaom { }; 18191 18192 libappindicator-gtk2 = libappindicator.override { gtkVersion = "2"; }; 18193 libappindicator-gtk3 = libappindicator.override { gtkVersion = "3"; };
··· 18187 18188 libantlr3c = callPackage ../development/libraries/libantlr3c {}; 18189 18190 + libaom = callPackage ../development/libraries/libaom { 18191 + # Remove circular dependency for libavif 18192 + libjxl = libjxl.override { buildDocs = false; }; 18193 + }; 18194 18195 libappindicator-gtk2 = libappindicator.override { gtkVersion = "2"; }; 18196 libappindicator-gtk3 = libappindicator.override { gtkVersion = "3"; };