Nixerus/pkgs/libs/svt-av1-psy.nix

61 lines
1.3 KiB
Nix
Raw Normal View History

2025-04-21 07:53:00 +02:00
{
lib,
stdenv,
fetchFromGitHub,
cmake,
nasm,
cpuinfo,
libdovi,
hdr10plus ? null,
2024-08-23 17:48:23 +02:00
}:
stdenv.mkDerivation (finalAttrs: {
pname = "svt-av1-psy";
2025-04-21 07:53:00 +02:00
version = "3.0.2";
2024-08-23 17:48:23 +02:00
src = fetchFromGitHub {
owner = "gianni-rosato";
repo = "svt-av1-psy";
rev = "v${finalAttrs.version}";
2025-04-21 07:53:00 +02:00
hash = "sha256-le/t03vM4WyBswDOLiI3yUnsvpY0jVXeupkkCt8UrXE=";
2024-08-23 17:48:23 +02:00
};
nativeBuildInputs = [
cmake
nasm
];
2025-04-21 07:53:00 +02:00
makeBuildType = "Release";
buildInputs = [
cpuinfo
libdovi
]
++
(lib.optionals (hdr10plus!=null) [hdr10plus]);
2024-08-23 17:48:23 +02:00
cmakeFlags = [
"-DSVT_AV1_LTO=ON"
2025-04-21 07:53:00 +02:00
"-DUSE_EXTERNAL_CPUINFO=ON"
"-DLIBDOVI_FOUND=ON"
]
++
(lib.optionals (hdr10plus!=null) ["-DLIBHDR10PLUS_RS_FOUND=ON"]);
2024-08-23 17:48:23 +02:00
meta = with lib; {
homepage = "https://github.com/gianni-rosato/svt-av1-psy";
description = "The Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder) with perceptual enhancements for psychovisually optimal AV1 encoding";
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.
'';
2025-04-21 07:53:00 +02:00
license = with licenses; [
aom
bsd3
];
2024-08-23 17:48:23 +02:00
platforms = platforms.unix;
};
})