Files
nixpkgs/pkgs/by-name/sv/svt-av1/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

66 lines
1.5 KiB
Nix

{
lib,
stdenv,
fetchFromGitLab,
gitUpdater,
cmake,
nasm,
# for passthru.tests
ffmpeg,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "svt-av1";
version = "3.1.2";
src = fetchFromGitLab {
owner = "AOMediaCodec";
repo = "SVT-AV1";
rev = "v${finalAttrs.version}";
hash = "sha256-/CpcxdyC4qf9wdzzySMYw17FbjYpasT+QVykXSlx28U=";
};
nativeBuildInputs = [
cmake
]
++ lib.optionals stdenv.hostPlatform.isx86_64 [
nasm
];
cmakeFlags = [
"-DSVT_AV1_LTO=ON"
];
passthru = {
updateScript = gitUpdater {
rev-prefix = "v";
};
tests = {
ffmpeg = ffmpeg.override { withSvtav1 = true; };
};
};
meta = with lib; {
homepage = "https://gitlab.com/AOMediaCodec/SVT-AV1";
description = "AV1-compliant encoder/decoder library core";
longDescription = ''
The Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder) is an
AV1-compliant encoder/decoder library core. The SVT-AV1 encoder
development is a work-in-progress targeting performance levels applicable
to both VOD and Live encoding / transcoding video applications. The
SVT-AV1 decoder implementation is targeting future codec research
activities.
'';
changelog = "https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/v${finalAttrs.version}/CHANGELOG.md";
license = with licenses; [
aom
bsd3
];
mainProgram = "SvtAv1EncApp";
platforms = platforms.unix;
};
})