Commit 89d7403e authored by Niklas Korz's avatar Niklas Korz
Browse files

svt-vp9: init at 0.3.1

parent 8279f6e7
Loading
Loading
Loading
Loading
+51 −0
Original line number Diff line number Diff line
{
  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" ];
  };
})