2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchurl
|
2018-09-16 20:53:50 +02:00
|
|
|
, dbus-glib, gtk3, libexif, libXScrnSaver, ninja, nss
|
2019-01-03 15:12:06 +01:00
|
|
|
, pciutils, pkgconfig, python2, xdg_utils, gn, at-spi2-core
|
2017-06-25 13:58:18 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${product}-${version}";
|
|
|
|
product = "vivaldi-ffmpeg-codecs";
|
2019-02-19 23:15:54 +01:00
|
|
|
version = "72.0.3626.109";
|
2017-06-25 13:58:18 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://commondatastorage.googleapis.com/chromium-browser-official/chromium-${version}.tar.xz";
|
2019-02-19 23:15:54 +01:00
|
|
|
sha512 = "0ffpzvamrzw71vfi12sdwqrxc42bhraai21zzx8rp5n12794rr687dzw9hn3735sc0h2bq7c59zc4hcx3ighr2i93iplz35hp883dhy";
|
2017-06-25 13:58:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2018-09-16 20:53:50 +02:00
|
|
|
gtk3 libexif libXScrnSaver ninja nss pciutils python2 xdg_utils gn
|
2019-01-03 15:12:06 +01:00
|
|
|
pkgconfig dbus-glib at-spi2-core.dev
|
2017-06-25 13:58:18 +02:00
|
|
|
];
|
|
|
|
|
2017-08-12 12:28:46 +02:00
|
|
|
patches = [
|
|
|
|
];
|
|
|
|
|
2017-06-25 13:58:18 +02:00
|
|
|
configurePhase = ''
|
|
|
|
runHook preConfigure
|
|
|
|
|
2018-09-16 20:53:50 +02:00
|
|
|
local args="ffmpeg_branding=\"ChromeOS\" proprietary_codecs=true enable_hevc_demuxing=true use_gnome_keyring=false use_sysroot=false use_gold=false use_allocator=\"none\" linux_use_bundled_binutils=false fatal_linker_warnings=false treat_warnings_as_errors=false enable_nacl=false enable_nacl_nonsfi=false is_clang=false clang_use_chrome_plugins=false is_component_build=true is_debug=false symbol_level=0 use_custom_libcxx=false use_lld=false use_jumbo_build=false"
|
|
|
|
gn gen out/Release -v --args="$args"
|
2017-06-25 13:58:18 +02:00
|
|
|
|
|
|
|
runHook postConfigure
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
ninja -C out/Release -v libffmpeg.so
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/lib"
|
|
|
|
cp out/Release/libffmpeg.so "$out/lib/libffmpeg.so"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Additional support for proprietary codecs for Vivaldi";
|
|
|
|
homepage = "https://ffmpeg.org/";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ lluchs ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|