2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2019-06-28 22:48:13 +01:00
|
|
|
, dpkg
|
2017-06-25 12:58:18 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-28 22:48:13 +01:00
|
|
|
name = "chromium-codecs-ffmpeg";
|
2019-10-29 01:02:01 +00:00
|
|
|
version = "78.0.3904.70";
|
2017-06-25 12:58:18 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-10-29 01:02:01 +00:00
|
|
|
url = "https://launchpadlibrarian.net/449403909/${name}-extra_${version}-0ubuntu0.16.04.2_amd64.deb";
|
|
|
|
sha256 = "00j604nm49z6hbyw7xsxcvmdjf7117kb478plkpizzvmm3w72b9v";
|
2017-06-25 12:58:18 +01:00
|
|
|
};
|
|
|
|
|
2019-06-28 22:48:13 +01:00
|
|
|
buildInputs = [ dpkg ];
|
2017-06-25 12:58:18 +01:00
|
|
|
|
2019-06-28 22:48:13 +01:00
|
|
|
unpackPhase = ''
|
|
|
|
dpkg-deb -x $src .
|
|
|
|
find .
|
2017-06-25 12:58:18 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-06-28 22:48:13 +01:00
|
|
|
install -vD usr/lib/chromium-browser/libffmpeg.so $out/lib/libffmpeg.so
|
2017-06-25 12:58:18 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-06-25 12:58:18 +01:00
|
|
|
description = "Additional support for proprietary codecs for Vivaldi";
|
|
|
|
homepage = "https://ffmpeg.org/";
|
|
|
|
license = licenses.lgpl21;
|
2019-06-28 22:48:13 +01:00
|
|
|
maintainers = with maintainers; [ betaboon lluchs ];
|
2017-06-25 12:58:18 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|