From d026598da492ab82541121b8cde0c6a86216e24a Mon Sep 17 00:00:00 2001 From: materus Date: Mon, 21 Apr 2025 07:53:00 +0200 Subject: [PATCH] sv-av1-psy: 2.2.1 -> 3.0.2 --- pkgs/libs/svt-av1-psy.nix | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/pkgs/libs/svt-av1-psy.nix b/pkgs/libs/svt-av1-psy.nix index b03cc93..515760c 100644 --- a/pkgs/libs/svt-av1-psy.nix +++ b/pkgs/libs/svt-av1-psy.nix @@ -1,30 +1,46 @@ -{ lib -, stdenv -, fetchFromGitHub -, cmake -, nasm +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + nasm, + cpuinfo, + libdovi, + hdr10plus ? null, }: stdenv.mkDerivation (finalAttrs: { pname = "svt-av1-psy"; - version = "2.2.1"; + version = "3.0.2"; src = fetchFromGitHub { owner = "gianni-rosato"; repo = "svt-av1-psy"; rev = "v${finalAttrs.version}"; - hash = "sha256-4ds7yrUMp0O5/aWOkdnrANR1D3djajU/0ZeY6xJnpHI="; + hash = "sha256-le/t03vM4WyBswDOLiI3yUnsvpY0jVXeupkkCt8UrXE="; }; nativeBuildInputs = [ cmake nasm ]; + makeBuildType = "Release"; + + buildInputs = [ + cpuinfo + libdovi + ] + ++ + (lib.optionals (hdr10plus!=null) [hdr10plus]); cmakeFlags = [ "-DSVT_AV1_LTO=ON" - ]; + "-DUSE_EXTERNAL_CPUINFO=ON" + "-DLIBDOVI_FOUND=ON" + ] + ++ + (lib.optionals (hdr10plus!=null) ["-DLIBHDR10PLUS_RS_FOUND=ON"]); meta = with lib; { homepage = "https://github.com/gianni-rosato/svt-av1-psy"; @@ -35,7 +51,10 @@ stdenv.mkDerivation (finalAttrs: { The goal is to create the best encoding implementation for perceptual quality with AV1. ''; - license = with licenses; [ aom bsd3 ]; + license = with licenses; [ + aom + bsd3 + ]; platforms = platforms.unix; }; })