Commit 051e4e6d authored by Sarah Clark's avatar Sarah Clark
Browse files

vivaldi-ffmpeg-codecs: 115541 -> 119239; add aarch64-linux

parent 4f5034f3
Loading
Loading
Loading
Loading
+23 −8
Original line number Diff line number Diff line
{
  squashfsTools,
  fetchurl,
  lib,
  squashfsTools,
  stdenv,
}:

# This derivation roughly follows the update-ffmpeg script that ships with the official Vivaldi
# downloads at https://vivaldi.com/download/

let
  sources = {
    x86_64-linux = fetchurl {
      url = "https://api.snapcraft.io/api/v1/snaps/download/XXzVIXswXKHqlUATPqGCj2w2l7BxosS8_73.snap";
      hash = "sha256-YsAYQ/fKlrvu7IbIxLO0oVhWOtZZzUmA00lrU+z/0+s=";
    };
    aarch64-linux = fetchurl {
      url = "https://api.snapcraft.io/api/v1/snaps/download/XXzVIXswXKHqlUATPqGCj2w2l7BxosS8_74.snap";
      hash = "sha256-zwCbaFeVmeHQLEp7nmD8VlEjSY9PqSVt6CdW4wPtw9o=";
    };
  };
in
stdenv.mkDerivation rec {
  
  pname = "chromium-codecs-ffmpeg-extra";
  version = "115541";

  src = fetchurl {
    url = "https://api.snapcraft.io/api/v1/snaps/download/XXzVIXswXKHqlUATPqGCj2w2l7BxosS8_41.snap";
    hash = "sha256-a1peHhku+OaGvPyChvLdh6/7zT+v8OHNwt60QUq7VvU=";
  };
  version = "119293";

  src = sources."${stdenv.hostPlatform.system}";

  buildInputs = [ squashfsTools ];

@@ -27,7 +39,7 @@ stdenv.mkDerivation rec {
  '';

  meta = with lib; {
    description = "Additional support for proprietary codecs for Vivaldi";
    description = "Additional support for proprietary codecs for Vivaldi and other chromium based tools";
    homepage = "https://ffmpeg.org/";
    sourceProvenance = with sourceTypes; [ binaryNativeCode ];
    license = licenses.lgpl21;
@@ -37,6 +49,9 @@ stdenv.mkDerivation rec {
      fptje
      sarahec
    ];
    platforms = [ "x86_64-linux" ];
    platforms = [
      "x86_64-linux"
      "aarch64-linux"
    ];
  };
}