From 89d7403e61289e0b99a8f47b8cdfddaf69e3dd40 Mon Sep 17 00:00:00 2001 From: Niklas Korz Date: Wed, 3 Dec 2025 11:31:05 +0100 Subject: [PATCH] svt-vp9: init at 0.3.1 --- pkgs/by-name/sv/svt-vp9/package.nix | 51 +++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 pkgs/by-name/sv/svt-vp9/package.nix diff --git a/pkgs/by-name/sv/svt-vp9/package.nix b/pkgs/by-name/sv/svt-vp9/package.nix new file mode 100644 index 000000000000..4e1345e9af0d --- /dev/null +++ b/pkgs/by-name/sv/svt-vp9/package.nix @@ -0,0 +1,51 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + ninja, + yasm, + versionCheckHook, + nix-update-script, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "svt-vp9"; + version = "0.3.1"; + + src = fetchFromGitHub { + owner = "OpenVisualCloud"; + repo = "SVT-VP9"; + tag = "v${finalAttrs.version}"; + hash = "sha256-M7XpHCqTxGgk/UOlMR0jEXist6vGie6abRYLnVvC6sg="; + }; + + outputs = [ + "bin" + "out" + "dev" + ]; + + nativeBuildInputs = [ + cmake + ninja + yasm + ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "VP9-compliant encoder targeting performance levels applicable to both VOD and live video applications"; + changelog = "https://github.com/OpenVisualCloud/SVT-VP9/releases/tag/v${finalAttrs.version}"; + homepage = "https://github.com/OpenVisualCloud/SVT-VP9"; + license = lib.licenses.bsd2Patent; + maintainers = with lib.maintainers; [ + niklaskorz + ]; + mainProgram = "SvtVp9EncApp"; + platforms = [ "x86_64-linux" ]; + }; +})