2018-07-21 01:44:44 +01:00
|
|
|
{ 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";
|
|
|
|
version = "74.0.3729.169";
|
2017-06-25 12:58:18 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-06-28 22:48:13 +01:00
|
|
|
url = "https://launchpadlibrarian.net/424938057/${name}-extra_${version}-0ubuntu0.16.04.1_amd64.deb";
|
|
|
|
sha256 = "1ls2fshfk08hqsfvbd7p6rp2gv3n0xdy86rdh00wiz5qgl3skfzc";
|
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
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
}
|