2018-10-24 23:25:36 +02:00
|
|
|
{ stdenv, llvmPackages, gn, ninja, which, nodejs, fetchurl, fetchpatch, gnutar
|
2014-04-01 07:36:26 +02:00
|
|
|
|
|
|
|
# default dependencies
|
2015-06-11 18:23:58 +02:00
|
|
|
, bzip2, flac, speex, libopus
|
2014-04-01 07:36:26 +02:00
|
|
|
, libevent, expat, libjpeg, snappy
|
2017-06-11 10:10:56 +02:00
|
|
|
, libpng, libcap
|
2014-04-01 07:36:26 +02:00
|
|
|
, xdg_utils, yasm, minizip, libwebp
|
2018-07-21 02:44:44 +02:00
|
|
|
, libusb1, pciutils, nss, re2, zlib
|
2014-04-01 07:36:26 +02:00
|
|
|
|
2016-11-19 10:29:45 +01:00
|
|
|
, python2Packages, perl, pkgconfig
|
2016-09-05 18:59:00 +02:00
|
|
|
, nspr, systemd, kerberos
|
2014-04-01 07:36:26 +02:00
|
|
|
, utillinux, alsaLib
|
2014-08-13 04:53:31 +02:00
|
|
|
, bison, gperf
|
2018-10-04 20:01:26 +02:00
|
|
|
, glib, gtk3, dbus-glib
|
2019-01-30 23:55:20 +01:00
|
|
|
, glibc
|
2018-03-09 02:53:18 +01:00
|
|
|
, libXScrnSaver, libXcursor, libXtst, libGLU_combined
|
2014-12-07 14:52:36 +01:00
|
|
|
, protobuf, speechd, libXdamage, cups
|
2018-10-17 23:03:43 +02:00
|
|
|
, ffmpeg, libxslt, libxml2, at-spi2-core
|
2018-11-20 00:54:01 +01:00
|
|
|
, jdk
|
2014-04-01 07:36:26 +02:00
|
|
|
|
|
|
|
# optional dependencies
|
|
|
|
, libgcrypt ? null # gnomeSupport || cupsSupport
|
2019-02-18 09:17:05 +01:00
|
|
|
, libva ? null # useVaapi
|
2014-04-01 07:36:26 +02:00
|
|
|
|
|
|
|
# package customization
|
|
|
|
, enableNaCl ? false
|
2016-11-08 20:18:15 +01:00
|
|
|
, enableWideVine ? false
|
2019-03-31 01:04:49 +01:00
|
|
|
, useVaapi ? false
|
2014-04-01 07:36:26 +02:00
|
|
|
, gnomeSupport ? false, gnome ? null
|
2018-02-25 03:23:58 +01:00
|
|
|
, gnomeKeyringSupport ? false, libgnome-keyring3 ? null
|
2014-04-01 07:36:26 +02:00
|
|
|
, proprietaryCodecs ? true
|
2014-12-07 14:52:36 +01:00
|
|
|
, cupsSupport ? true
|
2015-05-27 21:42:15 +02:00
|
|
|
, pulseSupport ? false, libpulseaudio ? null
|
2014-04-01 07:36:26 +02:00
|
|
|
|
2016-03-20 17:50:17 +01:00
|
|
|
, upstream-info
|
2014-04-01 07:36:26 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildFun:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
2017-07-07 00:54:10 +02:00
|
|
|
# see http://www.linuxfromscratch.org/blfs/view/cvs/xsoft/chromium.html
|
2018-10-28 17:07:19 +01:00
|
|
|
|
2014-04-01 07:36:26 +02:00
|
|
|
let
|
|
|
|
# The additional attributes for creating derivations based on the chromium
|
|
|
|
# source tree.
|
|
|
|
extraAttrs = buildFun base;
|
|
|
|
|
2018-02-27 00:04:33 +01:00
|
|
|
githubPatch = commit: sha256: fetchpatch {
|
|
|
|
url = "https://github.com/chromium/chromium/commit/${commit}.patch";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
2018-01-09 02:11:02 +01:00
|
|
|
|
2016-10-29 04:05:53 +02:00
|
|
|
mkGnFlags =
|
2014-04-01 07:36:26 +02:00
|
|
|
let
|
2016-10-29 04:05:53 +02:00
|
|
|
# Serialize Nix types into GN types according to this document:
|
|
|
|
# https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/language.md
|
|
|
|
mkGnString = value: "\"${escape ["\"" "$" "\\"] value}\"";
|
2014-04-01 07:36:26 +02:00
|
|
|
sanitize = value:
|
2016-10-29 04:05:53 +02:00
|
|
|
if value == true then "true"
|
|
|
|
else if value == false then "false"
|
|
|
|
else if isList value then "[${concatMapStringsSep ", " sanitize value}]"
|
|
|
|
else if isInt value then toString value
|
|
|
|
else if isString value then mkGnString value
|
|
|
|
else throw "Unsupported type for GN value `${value}'.";
|
|
|
|
toFlag = key: value: "${key}=${sanitize value}";
|
2014-04-01 07:36:26 +02:00
|
|
|
in attrs: concatStringsSep " " (attrValues (mapAttrs toFlag attrs));
|
|
|
|
|
2016-10-29 04:05:53 +02:00
|
|
|
gnSystemLibraries = [
|
2017-10-22 21:36:30 +02:00
|
|
|
"flac" "libwebp" "libxslt" "yasm" "opus" "snappy" "libpng" "zlib"
|
2017-07-31 10:01:15 +02:00
|
|
|
# "libjpeg" # fails with multiple undefined references to chromium_jpeg_*
|
|
|
|
# "re2" # fails with linker errors
|
|
|
|
# "ffmpeg" # https://crbug.com/731766
|
2017-12-08 04:44:06 +01:00
|
|
|
# "harfbuzz-ng" # in versions over 63 harfbuzz and freetype are being built together
|
|
|
|
# so we can't build with one from system and other from source
|
2016-10-29 04:05:53 +02:00
|
|
|
];
|
2014-04-01 07:36:26 +02:00
|
|
|
|
|
|
|
opusWithCustomModes = libopus.override {
|
2014-07-28 05:05:01 +02:00
|
|
|
withCustomModes = true;
|
2014-04-01 07:36:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
defaultDependencies = [
|
2015-06-11 18:23:58 +02:00
|
|
|
bzip2 flac speex opusWithCustomModes
|
2014-04-01 07:36:26 +02:00
|
|
|
libevent expat libjpeg snappy
|
2017-06-11 10:10:56 +02:00
|
|
|
libpng libcap
|
2014-04-01 07:36:26 +02:00
|
|
|
xdg_utils yasm minizip libwebp
|
2016-10-29 14:28:06 +02:00
|
|
|
libusb1 re2 zlib
|
2017-10-22 21:36:30 +02:00
|
|
|
ffmpeg libxslt libxml2
|
2018-05-27 14:25:55 +02:00
|
|
|
# harfbuzz # in versions over 63 harfbuzz and freetype are being built together
|
|
|
|
# so we can't build with one from system and other from source
|
2014-04-01 07:36:26 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
# build paths and release info
|
2014-04-20 08:39:40 +02:00
|
|
|
packageName = extraAttrs.packageName or extraAttrs.name;
|
2014-04-01 07:36:26 +02:00
|
|
|
buildType = "Release";
|
|
|
|
buildPath = "out/${buildType}";
|
|
|
|
libExecPath = "$out/libexec/${packageName}";
|
|
|
|
|
2017-09-21 02:32:40 +02:00
|
|
|
versionRange = min-version: upto-version:
|
|
|
|
let inherit (upstream-info) version;
|
|
|
|
result = versionAtLeast version min-version && versionOlder version upto-version;
|
|
|
|
stable-version = (import ./upstream-info.nix).stable.version;
|
|
|
|
in if versionAtLeast stable-version upto-version
|
|
|
|
then warn "chromium: stable version ${stable-version} is newer than a patchset bounded at ${upto-version}. You can safely delete it."
|
|
|
|
result
|
|
|
|
else result;
|
|
|
|
|
2014-04-01 07:36:26 +02:00
|
|
|
base = rec {
|
2018-11-18 01:51:12 +01:00
|
|
|
name = "${packageName}-unwrapped-${version}";
|
2016-03-20 17:50:17 +01:00
|
|
|
inherit (upstream-info) version;
|
2014-04-01 07:36:26 +02:00
|
|
|
inherit packageName buildType buildPath;
|
2016-03-20 17:50:17 +01:00
|
|
|
|
|
|
|
src = upstream-info.main;
|
|
|
|
|
2017-02-08 20:47:07 +01:00
|
|
|
nativeBuildInputs = [
|
2017-02-08 20:40:39 +01:00
|
|
|
ninja which python2Packages.python perl pkgconfig
|
2017-05-14 15:03:21 +02:00
|
|
|
python2Packages.ply python2Packages.jinja2 nodejs
|
2017-07-07 00:54:10 +02:00
|
|
|
gnutar
|
2017-02-08 20:47:07 +01:00
|
|
|
];
|
|
|
|
|
2014-04-01 07:36:26 +02:00
|
|
|
buildInputs = defaultDependencies ++ [
|
2016-09-05 18:59:00 +02:00
|
|
|
nspr nss systemd
|
2014-04-01 07:36:26 +02:00
|
|
|
utillinux alsaLib
|
2014-12-30 09:05:12 +01:00
|
|
|
bison gperf kerberos
|
2018-10-04 20:01:26 +02:00
|
|
|
glib gtk3 dbus-glib
|
2018-02-24 14:12:44 +01:00
|
|
|
libXScrnSaver libXcursor libXtst libGLU_combined
|
2018-12-09 04:00:42 +01:00
|
|
|
pciutils protobuf speechd libXdamage at-spi2-core
|
2018-02-25 03:23:58 +01:00
|
|
|
] ++ optional gnomeKeyringSupport libgnome-keyring3
|
2014-04-01 07:36:26 +02:00
|
|
|
++ optionals gnomeSupport [ gnome.GConf libgcrypt ]
|
2014-12-07 14:52:36 +01:00
|
|
|
++ optionals cupsSupport [ libgcrypt cups ]
|
2019-02-18 09:17:05 +01:00
|
|
|
++ optional useVaapi libva
|
2018-10-17 23:03:43 +02:00
|
|
|
++ optional pulseSupport libpulseaudio
|
2018-11-20 00:54:01 +01:00
|
|
|
++ optional (versionAtLeast version "72") jdk.jre;
|
2014-04-01 07:36:26 +02:00
|
|
|
|
2018-10-22 23:36:37 +02:00
|
|
|
patches = optional enableWideVine ./patches/widevine.patch ++ [
|
2018-05-12 02:19:56 +02:00
|
|
|
./patches/nix_plugin_paths_68.patch
|
2018-07-13 23:40:18 +02:00
|
|
|
./patches/remove-webp-include-69.patch
|
2018-10-30 16:10:14 +01:00
|
|
|
./patches/jumbo-sorted.patch
|
2018-11-02 15:43:56 +01:00
|
|
|
./patches/no-build-timestamps.patch
|
2018-10-24 23:25:36 +02:00
|
|
|
|
2018-10-22 23:36:37 +02:00
|
|
|
# Unfortunately, chromium regularly breaks on major updates and
|
2018-10-24 23:25:36 +02:00
|
|
|
# then needs various patches backported in order to be compiled with GCC.
|
|
|
|
# Good sources for such patches and other hints:
|
2018-10-22 23:36:37 +02:00
|
|
|
# - https://gitweb.gentoo.org/repo/gentoo.git/plain/www-client/chromium/
|
|
|
|
# - https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/chromium
|
|
|
|
# - https://github.com/chromium/chromium/search?q=GCC&s=committer-date&type=Commits
|
|
|
|
#
|
|
|
|
# ++ optional (versionRange "68" "72") ( githubPatch "<patch>" "0000000000000000000000000000000000000000000000000000000000000000" )
|
2019-02-18 09:17:05 +01:00
|
|
|
] ++ optionals (useVaapi) [
|
|
|
|
# source: https://aur.archlinux.org/cgit/aur.git/plain/chromium-vaapi.patch?h=chromium-vaapi
|
|
|
|
./patches/chromium-vaapi.patch
|
2018-12-09 04:00:42 +01:00
|
|
|
] ++ optionals (!stdenv.cc.isClang && (versionRange "71" "72")) [
|
|
|
|
( githubPatch "65be571f6ac2f7942b4df9e50b24da517f829eec" "1sqv0aba0mpdi4x4f21zdkxz2cf8ji55ffgbfcr88c5gcg0qn2jh" )
|
2018-10-22 23:36:37 +02:00
|
|
|
] ++ optional stdenv.isAarch64
|
2018-10-17 01:21:29 +02:00
|
|
|
(if (versionOlder version "71") then
|
|
|
|
fetchpatch {
|
|
|
|
url = https://raw.githubusercontent.com/OSSystems/meta-browser/e4a667deaaf9a26a3a1aeb355770d1f29da549ad/recipes-browser/chromium/files/aarch64-skia-build-fix.patch;
|
|
|
|
sha256 = "0dkchqair8cy2f5a5p5vi24r9b4d28pgn2bfvm1568lypbjw6iab";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
fetchpatch {
|
|
|
|
url = https://raw.githubusercontent.com/OSSystems/meta-browser/e4a667deaaf9a26a3a1aeb355770d1f29da549ad/recipes-browser/chromium/files/aarch64-skia-build-fix.patch;
|
|
|
|
postFetch = "substituteInPlace $out --replace __aarch64__ SK_CPU_ARM64";
|
|
|
|
sha256 = "018fbdzyw9rvia8m0qkk5gv8q8gl7x34rrjbn7mi1fgxdsayn22s";
|
|
|
|
}
|
|
|
|
);
|
2018-10-24 23:25:36 +02:00
|
|
|
|
2015-06-19 19:35:30 +02:00
|
|
|
postPatch = ''
|
2016-08-04 21:26:05 +02:00
|
|
|
# We want to be able to specify where the sandbox is via CHROME_DEVEL_SANDBOX
|
|
|
|
substituteInPlace sandbox/linux/suid/client/setuid_sandbox_host.cc \
|
|
|
|
--replace \
|
2016-08-05 11:55:48 +02:00
|
|
|
'return sandbox_binary;' \
|
|
|
|
'return base::FilePath(GetDevelSandboxPath());'
|
2016-08-04 21:26:05 +02:00
|
|
|
|
2019-01-30 23:55:20 +01:00
|
|
|
substituteInPlace services/audio/audio_sandbox_hook_linux.cc \
|
|
|
|
--replace \
|
|
|
|
'/usr/share/alsa/' \
|
|
|
|
'${alsaLib}/share/alsa/' \
|
|
|
|
--replace \
|
|
|
|
'/usr/lib/x86_64-linux-gnu/gconv/' \
|
|
|
|
'${glibc}/lib/gconv/' \
|
|
|
|
--replace \
|
|
|
|
'/usr/share/locale/' \
|
|
|
|
'${glibc}/share/locale/'
|
|
|
|
|
2017-03-07 11:10:58 +01:00
|
|
|
sed -i -e 's@"\(#!\)\?.*xdg-@"\1${xdg_utils}/bin/xdg-@' \
|
|
|
|
chrome/browser/shell_integration_linux.cc
|
|
|
|
|
2016-09-05 18:59:00 +02:00
|
|
|
sed -i -e '/lib_loader.*Load/s!"\(libudev\.so\)!"${systemd.lib}/lib/\1!' \
|
2015-01-23 01:48:56 +01:00
|
|
|
device/udev_linux/udev?_loader.cc
|
|
|
|
|
|
|
|
sed -i -e '/libpci_loader.*Load/s!"\(libpci\.so\)!"${pciutils}/lib/\1!' \
|
|
|
|
gpu/config/gpu_info_collector_linux.cc
|
2016-05-28 19:04:22 +02:00
|
|
|
|
2016-03-30 01:05:07 +02:00
|
|
|
sed -i -re 's/([^:])\<(isnan *\()/\1std::\2/g' \
|
|
|
|
chrome/browser/ui/webui/engagement/site_engagement_ui.cc
|
2016-10-29 04:05:53 +02:00
|
|
|
|
|
|
|
sed -i -e '/#include/ {
|
|
|
|
i #include <algorithm>
|
|
|
|
:l; n; bl
|
|
|
|
}' gpu/config/gpu_control_list.cc
|
|
|
|
|
2017-06-18 04:29:22 +02:00
|
|
|
# Allow to put extensions into the system-path.
|
|
|
|
sed -i -e 's,/usr,/run/current-system/sw,' chrome/common/chrome_paths.cc
|
|
|
|
|
2016-10-29 04:05:53 +02:00
|
|
|
patchShebangs .
|
2017-05-14 15:03:21 +02:00
|
|
|
# use our own nodejs
|
|
|
|
mkdir -p third_party/node/linux/node-linux-x64/bin
|
|
|
|
ln -s $(which node) third_party/node/linux/node-linux-x64/bin/node
|
2017-07-07 00:54:10 +02:00
|
|
|
|
|
|
|
# remove unused third-party
|
2018-05-12 02:19:44 +02:00
|
|
|
# in third_party/crashpad third_party/zlib contains just a header-adapter
|
2017-07-07 00:54:10 +02:00
|
|
|
for lib in ${toString gnSystemLibraries}; do
|
|
|
|
find -type f -path "*third_party/$lib/*" \
|
2018-05-12 02:19:44 +02:00
|
|
|
\! -path "*third_party/crashpad/crashpad/third_party/zlib/*" \
|
2017-07-07 00:54:10 +02:00
|
|
|
\! -path "*third_party/$lib/chromium/*" \
|
|
|
|
\! -path "*third_party/$lib/google/*" \
|
|
|
|
\! -path "*base/third_party/icu/*" \
|
|
|
|
\! -path "*base/third_party/libevent/*" \
|
|
|
|
\! -regex '.*\.\(gn\|gni\|isolate\|py\)' \
|
|
|
|
-delete
|
|
|
|
done
|
2018-01-21 14:31:54 +01:00
|
|
|
'' + optionalString stdenv.isAarch64 ''
|
|
|
|
substituteInPlace build/toolchain/linux/BUILD.gn \
|
|
|
|
--replace 'toolprefix = "aarch64-linux-gnu-"' 'toolprefix = ""'
|
2018-10-24 23:25:36 +02:00
|
|
|
'' + optionalString stdenv.cc.isClang ''
|
|
|
|
mkdir -p third_party/llvm-build/Release+Asserts/bin
|
|
|
|
ln -s ${stdenv.cc}/bin/clang third_party/llvm-build/Release+Asserts/bin/clang
|
|
|
|
ln -s ${stdenv.cc}/bin/clang++ third_party/llvm-build/Release+Asserts/bin/clang++
|
|
|
|
ln -s ${llvmPackages.llvm}/bin/llvm-ar third_party/llvm-build/Release+Asserts/bin/llvm-ar
|
2014-04-01 07:36:26 +02:00
|
|
|
'';
|
|
|
|
|
2016-10-29 04:05:53 +02:00
|
|
|
gnFlags = mkGnFlags ({
|
2014-08-13 04:53:31 +02:00
|
|
|
linux_use_bundled_binutils = false;
|
2018-10-24 23:25:36 +02:00
|
|
|
use_lld = false;
|
2017-02-08 20:42:06 +01:00
|
|
|
use_gold = true;
|
|
|
|
gold_path = "${stdenv.cc}/bin";
|
2016-10-29 04:05:53 +02:00
|
|
|
is_debug = false;
|
2018-11-01 18:49:52 +01:00
|
|
|
# at least 2X compilation speedup
|
|
|
|
use_jumbo_build = true;
|
2016-03-28 11:31:21 +02:00
|
|
|
|
2014-04-01 07:36:26 +02:00
|
|
|
proprietary_codecs = false;
|
2015-12-29 19:32:30 +01:00
|
|
|
use_sysroot = false;
|
2014-04-01 07:36:26 +02:00
|
|
|
use_gnome_keyring = gnomeKeyringSupport;
|
|
|
|
use_gio = gnomeSupport;
|
2016-10-29 04:05:53 +02:00
|
|
|
enable_nacl = enableNaCl;
|
2016-11-08 20:18:15 +01:00
|
|
|
enable_widevine = enableWideVine;
|
2014-04-01 07:36:26 +02:00
|
|
|
use_cups = cupsSupport;
|
2017-07-31 10:01:15 +02:00
|
|
|
|
2016-10-29 04:05:53 +02:00
|
|
|
treat_warnings_as_errors = false;
|
2018-10-24 23:25:36 +02:00
|
|
|
is_clang = stdenv.cc.isClang;
|
2017-07-31 10:01:15 +02:00
|
|
|
clang_use_chrome_plugins = false;
|
|
|
|
remove_webcore_debug_symbols = true;
|
|
|
|
enable_swiftshader = false;
|
|
|
|
fieldtrial_testing_like_official_build = true;
|
2014-04-01 07:36:26 +02:00
|
|
|
|
2014-04-19 15:25:21 +02:00
|
|
|
# Google API keys, see:
|
|
|
|
# http://www.chromium.org/developers/how-tos/api-keys
|
2014-04-01 07:36:26 +02:00
|
|
|
# Note: These are for NixOS/nixpkgs use ONLY. For your own distribution,
|
|
|
|
# please get your own set of keys.
|
|
|
|
google_api_key = "AIzaSyDGi15Zwl11UNe6Y-5XW_upsfyw31qwZPI";
|
|
|
|
google_default_client_id = "404761575300.apps.googleusercontent.com";
|
|
|
|
google_default_client_secret = "9rIFQjfnkykEmqb6FfjJQD1D";
|
|
|
|
} // optionalAttrs proprietaryCodecs {
|
|
|
|
# enable support for the H.264 codec
|
|
|
|
proprietary_codecs = true;
|
2015-10-07 18:42:24 +02:00
|
|
|
enable_hangout_services_extension = true;
|
2014-04-01 07:36:26 +02:00
|
|
|
ffmpeg_branding = "Chrome";
|
2019-02-18 09:17:05 +01:00
|
|
|
} // optionalAttrs useVaapi {
|
|
|
|
use_vaapi = true;
|
2016-10-29 04:05:53 +02:00
|
|
|
} // optionalAttrs pulseSupport {
|
|
|
|
use_pulseaudio = true;
|
|
|
|
link_pulseaudio = true;
|
|
|
|
} // (extraAttrs.gnFlags or {}));
|
2014-04-01 07:36:26 +02:00
|
|
|
|
|
|
|
configurePhase = ''
|
2017-02-08 20:48:05 +01:00
|
|
|
runHook preConfigure
|
|
|
|
|
2014-04-01 07:36:26 +02:00
|
|
|
# This is to ensure expansion of $out.
|
|
|
|
libExecPath="${libExecPath}"
|
2016-10-29 04:05:53 +02:00
|
|
|
python build/linux/unbundle/replace_gn_files.py \
|
|
|
|
--system-libraries ${toString gnSystemLibraries}
|
2018-09-07 21:34:47 +02:00
|
|
|
${gn}/bin/gn gen --args=${escapeShellArg gnFlags} out/Release | tee gn-gen-outputs.txt
|
2018-06-19 02:48:42 +02:00
|
|
|
|
|
|
|
# Fail if `gn gen` contains a WARNING.
|
|
|
|
grep -o WARNING gn-gen-outputs.txt && echo "Found gn WARNING, exiting nix build" && exit 1
|
2017-02-08 20:48:05 +01:00
|
|
|
|
|
|
|
runHook postConfigure
|
2014-04-01 07:36:26 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = let
|
2017-09-01 12:24:47 +02:00
|
|
|
# Build paralelism: on Hydra the build was frequently running into memory
|
|
|
|
# exhaustion, and even other users might be running into similar issues.
|
|
|
|
# -j is halved to avoid memory problems, and -l is slightly increased
|
|
|
|
# so that the build gets slight preference before others
|
|
|
|
# (it will often be on "critical path" and at risk of timing out)
|
2014-08-13 04:49:53 +02:00
|
|
|
buildCommand = target: ''
|
2017-02-08 20:47:07 +01:00
|
|
|
ninja -C "${buildPath}" \
|
2017-09-01 12:24:47 +02:00
|
|
|
-j$(( ($NIX_BUILD_CORES+1) / 2 )) -l$(( $NIX_BUILD_CORES+1 )) \
|
2014-08-13 04:49:53 +02:00
|
|
|
"${target}"
|
2017-11-08 23:44:20 +01:00
|
|
|
(
|
|
|
|
source chrome/installer/linux/common/installer.include
|
|
|
|
PACKAGE=$packageName
|
|
|
|
MENUNAME="Chromium"
|
|
|
|
process_template chrome/app/resources/manpage.1.in "${buildPath}/chrome.1"
|
|
|
|
)
|
2014-04-25 03:58:33 +02:00
|
|
|
'';
|
|
|
|
targets = extraAttrs.buildTargets or [];
|
|
|
|
commands = map buildCommand targets;
|
|
|
|
in concatStringsSep "\n" commands;
|
2014-04-01 07:36:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# Remove some extraAttrs we supplied to the base attributes already.
|
|
|
|
in stdenv.mkDerivation (base // removeAttrs extraAttrs [
|
2016-10-29 04:05:53 +02:00
|
|
|
"name" "gnFlags" "buildTargets"
|
2014-04-01 07:36:26 +02:00
|
|
|
])
|