2017-06-25 13:58:18 +02:00
|
|
|
{ stdenv, fetchurl, fetchpatch
|
|
|
|
, dbus_glib, gtk2, gtk3, libexif, libpulseaudio, libXScrnSaver, ninja, nss
|
|
|
|
, pciutils, pkgconfig, python2, xdg_utils
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${product}-${version}";
|
|
|
|
product = "vivaldi-ffmpeg-codecs";
|
2017-08-12 12:28:46 +02:00
|
|
|
version = "60.0.3112.90";
|
2017-06-25 13:58:18 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://commondatastorage.googleapis.com/chromium-browser-official/chromium-${version}.tar.xz";
|
2017-08-12 12:28:46 +02:00
|
|
|
sha512 = "2p7pjjsxpglxjmh0asyykagqh33ccrjwj4b2aski4h31wkxv9b9najy8aqk6j1bi06n9wd35vis4hz4fr6kvgckllg1pjqrb3bpwmq5";
|
2017-06-25 13:58:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
dbus_glib gtk2 gtk3 libexif libpulseaudio libXScrnSaver ninja nss pciutils pkgconfig
|
|
|
|
python2 xdg_utils
|
|
|
|
];
|
|
|
|
|
2017-08-12 12:28:46 +02:00
|
|
|
patches = [
|
2017-09-16 14:29:49 +02:00
|
|
|
./chromium-gn-bootstrap-r8.patch
|
2017-08-12 12:28:46 +02:00
|
|
|
];
|
|
|
|
|
2017-06-25 13:58:18 +02:00
|
|
|
configurePhase = ''
|
|
|
|
runHook preConfigure
|
|
|
|
|
|
|
|
local args="ffmpeg_branding=\"ChromeOS\" proprietary_codecs=true enable_hevc_demuxing=true use_gconf=false use_gio=false use_gnome_keyring=false use_kerberos=false use_cups=false use_sysroot=false use_gold=false linux_use_bundled_binutils=false fatal_linker_warnings=false treat_warnings_as_errors=false is_clang=false is_component_build=true is_debug=false symbol_level=0"
|
|
|
|
python tools/gn/bootstrap/bootstrap.py -v -s --no-clean --gn-gen-args "$args"
|
|
|
|
out/Release/gn gen out/Release -v --args="$args"
|
|
|
|
|
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
}
|