From a606bee95505f55e5ee0f5b864eae2f0eda040d7 Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Sat, 31 Aug 2024 10:03:24 +0530 Subject: [PATCH] svt-av1-psy: init at 2.2.1 --- pkgs/by-name/sv/svt-av1-psy/package.nix | 55 +++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 pkgs/by-name/sv/svt-av1-psy/package.nix diff --git a/pkgs/by-name/sv/svt-av1-psy/package.nix b/pkgs/by-name/sv/svt-av1-psy/package.nix new file mode 100644 index 000000000000..df45ea1734cc --- /dev/null +++ b/pkgs/by-name/sv/svt-av1-psy/package.nix @@ -0,0 +1,55 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + nasm, + libdovi, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "svt-av1-psy"; + version = "2.2.1"; + + src = fetchFromGitHub { + owner = "gianni-rosato"; + repo = "svt-av1-psy"; + rev = "refs/tags/v${finalAttrs.version}"; + hash = "sha256-4ds7yrUMp0O5/aWOkdnrANR1D3djajU/0ZeY6xJnpHI="; + }; + + cmakeBuildType = "Release"; + + cmakeFlags = lib.mapAttrsToList lib.cmakeFeature { + LIBDOVI_FOUND = lib.boolToString true; + # enable when libhdr10plus is available + # LIBHDR10PLUS_RS_FOUND = lib.boolToString true; + }; + + nativeBuildInputs = [ + cmake + nasm + ]; + + buildInputs = [ + libdovi + ]; + + meta = { + homepage = "https://github.com/gianni-rosato/svt-av1-psy"; + description = "Scalable Video Technology AV1 Encoder and Decoder"; + + longDescription = '' + SVT-AV1-PSY is the Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder) + with perceptual enhancements for psychovisually optimal AV1 encoding. + The goal is to create the best encoding implementation for perceptual quality with AV1. + ''; + + license = with lib.licenses; [ + aom + bsd3 + ]; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ johnrtitor ]; + }; +})