Unverified Commit 6527f2ca authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

svt-vp9: init at 0.3.1 (#467448)

parents 1207a3c9 89d7403e
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" ];
  };
})