3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/browsers/vivaldi/ffmpeg-codecs.nix
2022-01-07 11:19:58 +00:00

30 lines
791 B
Nix

{ dpkg, fetchurl, lib, stdenv }:
stdenv.mkDerivation rec {
pname = "chromium-codecs-ffmpeg-extra";
version = "97.0.4692.56";
src = fetchurl {
url = "https://launchpadlibrarian.net/574348729/${pname}_${version}-0ubuntu0.18.04.1_amd64.deb";
sha256 = "sha256-v5DHJxQjHjBeIS/psaM+LyUaHKlwzrKncLarErbUGVU=";
};
buildInputs = [ dpkg ];
unpackPhase = ''
dpkg-deb -x $src .
'';
installPhase = ''
install -vD usr/lib/chromium-browser/libffmpeg.so $out/lib/libffmpeg.so
'';
meta = with lib; {
description = "Additional support for proprietary codecs for Vivaldi";
homepage = "https://ffmpeg.org/";
license = licenses.lgpl21;
maintainers = with maintainers; [ betaboon cawilliamson lluchs ];
platforms = [ "x86_64-linux" ];
};
}