Files
nixpkgs/pkgs/by-name/sv/svt-av1-psy/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

78 lines
1.6 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
nasm,
cpuinfo,
libdovi,
hdr10plus,
unstableGitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "svt-av1-psy";
version = "3.0.2-unstable-2025-04-21";
src = fetchFromGitHub {
owner = "psy-ex";
repo = "svt-av1-psy";
rev = "3745419c40267d294202b52f48f069aff56cdb78";
hash = "sha256-iAw2FiEsBGB4giWqzo1EJZok26WSlq7brq9kJubnkAQ=";
};
cmakeBuildType = "Release";
cmakeFlags =
lib.mapAttrsToList
(
n: v:
lib.cmakeOptionType (builtins.typeOf v) n (
if builtins.isBool v then lib.boolToString v else toString v
)
)
{
LIBDOVI_FOUND = true;
LIBHDR10PLUS_RS_FOUND = true;
};
nativeBuildInputs = [
cmake
]
++ lib.optionals stdenv.hostPlatform.isx86_64 [
nasm
];
buildInputs = [
libdovi
hdr10plus
]
++ lib.optionals stdenv.hostPlatform.isx86_64 [
cpuinfo
];
passthru.updateScript = unstableGitUpdater {
branch = "master";
tagPrefix = "v";
};
meta = {
homepage = "https://github.com/psy-ex/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 ];
mainProgram = "SvtAv1EncApp";
};
})