{
  lib,
  stdenv,
  matroska-foundation,
}:

stdenv.mkDerivation rec {
  pname = "mkvalidator";
  inherit (matroska-foundation) version;
  buildCommand = ''
    mkdir -p $out/bin
    ln -s ${matroska-foundation}/bin/${pname} $out/bin
  '';
  meta = matroska-foundation.meta // {
    description = "verify Matroska and WebM files for spec conformance";
  };
}
