2018-10-24 22:25:36 +01:00
|
|
|
{ stdenv, llvmPackages, gn, ninja, which, nodejs, fetchurl, fetchpatch, gnutar
|
2014-04-01 06:36:26 +01:00
|
|
|
|
|
|
|
# default dependencies
|
2015-06-11 17:23:58 +01:00
|
|
|
, bzip2, flac, speex, libopus
|
2014-04-01 06:36:26 +01:00
|
|
|
, libevent, expat, libjpeg, snappy
|
2017-06-11 09:10:56 +01:00
|
|
|
, libpng, libcap
|
2014-04-01 06:36:26 +01:00
|
|
|
, xdg_utils, yasm, minizip, libwebp
|
2018-07-21 01:44:44 +01:00
|
|
|
, libusb1, pciutils, nss, re2, zlib
|
2014-04-01 06:36:26 +01:00
|
|
|
|
2016-11-19 09:29:45 +00:00
|
|
|
, python2Packages, perl, pkgconfig
|
2016-09-05 17:59:00 +01:00
|
|
|
, nspr, systemd, kerberos
|
2014-04-01 06:36:26 +01:00
|
|
|
, utillinux, alsaLib
|
2014-08-13 03:53:31 +01:00
|
|
|
, bison, gperf
|
2018-10-04 19:01:26 +01:00
|
|
|
, glib, gtk3, dbus-glib
|
2018-03-09 01:53:18 +00:00
|
|
|
, libXScrnSaver, libXcursor, libXtst, libGLU_combined
|
2014-12-07 13:52:36 +00:00
|
|
|
, protobuf, speechd, libXdamage, cups
|
2018-10-17 22:03:43 +01:00
|
|
|
, ffmpeg, libxslt, libxml2, at-spi2-core
|
2018-11-19 23:54:01 +00:00
|
|
|
, jdk
|
2014-04-01 06:36:26 +01:00
|
|
|
|
|
|
|
# optional dependencies
|
|
|
|
, libgcrypt ? null # gnomeSupport || cupsSupport
|
|
|
|
|
|
|
|
# package customization
|
|
|
|
, enableNaCl ? false
|
2016-11-08 19:18:15 +00:00
|
|
|
, enableWideVine ? false
|
2014-04-01 06:36:26 +01:00
|
|
|
, gnomeSupport ? false, gnome ? null
|
2018-02-25 02:23:58 +00:00
|
|
|
, gnomeKeyringSupport ? false, libgnome-keyring3 ? null
|
2014-04-01 06:36:26 +01:00
|
|
|
, proprietaryCodecs ? true
|
2014-12-07 13:52:36 +00:00
|
|
|
, cupsSupport ? true
|
2015-05-27 20:42:15 +01:00
|
|
|
, pulseSupport ? false, libpulseaudio ? null
|
2014-04-01 06:36:26 +01:00
|
|
|
|
2016-03-20 16:50:17 +00:00
|
|
|
, upstream-info
|
2014-04-01 06:36:26 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildFun:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
2017-07-06 23:54:10 +01:00
|
|
|
# see http://www.linuxfromscratch.org/blfs/view/cvs/xsoft/chromium.html
|
2018-10-28 16:07:19 +00:00
|
|
|
|
2014-04-01 06:36:26 +01:00
|
|
|
let
|
|
|
|
# The additional attributes for creating derivations based on the chromium
|
|
|
|
# source tree.
|
|
|
|
extraAttrs = buildFun base;
|
|
|
|
|
2018-02-26 23:04:33 +00:00
|
|
|
githubPatch = commit: sha256: fetchpatch {
|
|
|
|
url = "https://github.com/chromium/chromium/commit/${commit}.patch";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
2018-01-09 01:11:02 +00:00
|
|
|
|
2016-10-29 03:05:53 +01:00
|
|
|
mkGnFlags =
|
2014-04-01 06:36:26 +01:00
|
|
|
let
|
2016-10-29 03:05:53 +01: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 06:36:26 +01:00
|
|
|
sanitize = value:
|
2016-10-29 03:05:53 +01: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 06:36:26 +01:00
|
|
|
in attrs: concatStringsSep " " (attrValues (mapAttrs toFlag attrs));
|
|
|
|
|
2016-10-29 03:05:53 +01:00
|
|
|
gnSystemLibraries = [
|
2017-10-22 20:36:30 +01:00
|
|
|
"flac" "libwebp" "libxslt" "yasm" "opus" "snappy" "libpng" "zlib"
|
2017-07-31 09:01:15 +01:00
|
|
|
# "libjpeg" # fails with multiple undefined references to chromium_jpeg_*
|
|
|
|
# "re2" # fails with linker errors
|
|
|
|
# "ffmpeg" # https://crbug.com/731766
|
2017-12-08 03:44:06 +00: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 03:05:53 +01:00
|
|
|
];
|
2014-04-01 06:36:26 +01:00
|
|
|
|
|
|
|
opusWithCustomModes = libopus.override {
|
2014-07-28 04:05:01 +01:00
|
|
|
withCustomModes = true;
|
2014-04-01 06:36:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
defaultDependencies = [
|
2015-06-11 17:23:58 +01:00
|
|
|
bzip2 flac speex opusWithCustomModes
|
2014-04-01 06:36:26 +01:00
|
|
|
libevent expat libjpeg snappy
|
2017-06-11 09:10:56 +01:00
|
|
|
libpng libcap
|
2014-04-01 06:36:26 +01:00
|
|
|
xdg_utils yasm minizip libwebp
|
2016-10-29 13:28:06 +01:00
|
|
|
libusb1 re2 zlib
|
2017-10-22 20:36:30 +01:00
|
|
|
ffmpeg libxslt libxml2
|
2018-05-27 13:25:55 +01: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 06:36:26 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# build paths and release info
|
2014-04-20 07:39:40 +01:00
|
|
|
packageName = extraAttrs.packageName or extraAttrs.name;
|
2014-04-01 06:36:26 +01:00
|
|
|
buildType = "Release";
|
|
|
|
buildPath = "out/${buildType}";
|
|
|
|
libExecPath = "$out/libexec/${packageName}";
|
|
|
|
|
2017-09-21 01:32:40 +01: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 06:36:26 +01:00
|
|
|
base = rec {
|
|
|
|
name = "${packageName}-${version}";
|
2016-03-20 16:50:17 +00:00
|
|
|
inherit (upstream-info) version;
|
2014-04-01 06:36:26 +01:00
|
|
|
inherit packageName buildType buildPath;
|
2016-03-20 16:50:17 +00:00
|
|
|
|
|
|
|
src = upstream-info.main;
|
|
|
|
|
2017-02-08 19:47:07 +00:00
|
|
|
nativeBuildInputs = [
|
2017-02-08 19:40:39 +00:00
|
|
|
ninja which python2Packages.python perl pkgconfig
|
2017-05-14 14:03:21 +01:00
|
|
|
python2Packages.ply python2Packages.jinja2 nodejs
|
2017-07-06 23:54:10 +01:00
|
|
|
gnutar
|
2017-02-08 19:47:07 +00:00
|
|
|
];
|
|
|
|
|
2014-04-01 06:36:26 +01:00
|
|
|
buildInputs = defaultDependencies ++ [
|
2016-09-05 17:59:00 +01:00
|
|
|
nspr nss systemd
|
2014-04-01 06:36:26 +01:00
|
|
|
utillinux alsaLib
|
2014-12-30 08:05:12 +00:00
|
|
|
bison gperf kerberos
|
2018-10-04 19:01:26 +01:00
|
|
|
glib gtk3 dbus-glib
|
2018-02-24 13:12:44 +00:00
|
|
|
libXScrnSaver libXcursor libXtst libGLU_combined
|
2014-04-01 06:36:26 +01:00
|
|
|
pciutils protobuf speechd libXdamage
|
2018-02-25 02:23:58 +00:00
|
|
|
] ++ optional gnomeKeyringSupport libgnome-keyring3
|
2014-04-01 06:36:26 +01:00
|
|
|
++ optionals gnomeSupport [ gnome.GConf libgcrypt ]
|
2014-12-07 13:52:36 +00:00
|
|
|
++ optionals cupsSupport [ libgcrypt cups ]
|
2018-10-17 22:03:43 +01:00
|
|
|
++ optional pulseSupport libpulseaudio
|
2018-11-19 23:54:01 +00:00
|
|
|
++ optional (versionAtLeast version "71") at-spi2-core
|
|
|
|
++ optional (versionAtLeast version "72") jdk.jre;
|
2014-04-01 06:36:26 +01:00
|
|
|
|
2018-10-22 22:36:37 +01:00
|
|
|
patches = optional enableWideVine ./patches/widevine.patch ++ [
|
2018-05-12 01:19:56 +01:00
|
|
|
./patches/nix_plugin_paths_68.patch
|
2018-07-13 22:40:18 +01:00
|
|
|
./patches/remove-webp-include-69.patch
|
2018-10-24 22:25:36 +01:00
|
|
|
|
2018-10-22 22:36:37 +01:00
|
|
|
# Unfortunately, chromium regularly breaks on major updates and
|
2018-10-24 22:25:36 +01:00
|
|
|
# then needs various patches backported in order to be compiled with GCC.
|
|
|
|
# Good sources for such patches and other hints:
|
2018-10-22 22:36:37 +01: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" )
|
2018-10-24 22:25:36 +01:00
|
|
|
] ++ optionals (!stdenv.cc.isClang && (versionRange "70" "71")) [
|
2018-10-22 22:36:37 +01:00
|
|
|
( githubPatch "cbdb8bd6567c8143dc8c1e5e86a21a8ea064eea4" "0258qlffp6f6izswczb11p8zdpn550z5yqa9z7gdg2rg5171n5i8" )
|
|
|
|
( githubPatch "e98f8ef8b2f236ecbb01df8c39e6ee1c8fbe8d7d" "1ky5xrzch6aya87kn0bgb31lksl3g8kh2v8k676ks7pdl2v132p9" )
|
|
|
|
( githubPatch "a4de8da116585357c123d71e5f54d1103824c6df" "1y7afnjrsz6j2l3vy1ms8mrkbb51xhcafw9r371algi48il7rajm" )
|
|
|
|
( githubPatch "b033d2ba32da5ea237656568c25908d4f12b7bac" "008dg8vk822wyrinirx4nh92yq9bki4mwfwvcwnxdjmvz3y0jfcc" )
|
|
|
|
( githubPatch "2f9563e49f6c28dfe52940901417a4031b95a49b" "1q8qhpzx611yzrxa8lgpw0bad9bxx84rsrvczl4xvk5qh93zna7i" )
|
|
|
|
( githubPatch "a66e0a3f3f57eb045639e2752a99ade348dc17e9" "1c5x9856b167z270357wr8l6m1wrznxcx89ykj6kfz5djqmv251g" )
|
|
|
|
( githubPatch "4d9714247f617bf9e1cf95f735148f5e598a9529" "1423jf3lzbljzgbcwvfrrfyhyl3fab988hsyjvk95zyclxff7iij" )
|
|
|
|
( githubPatch "87902b3202f81d689dd314c17006ffc907fe12a1" "15q37cd26s73girq1imcs52fb1irh0qlfvhksh6g0l0jjrdyzk6r" )
|
|
|
|
] ++ optional stdenv.isAarch64
|
2018-10-17 00:21:29 +01: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 22:25:36 +01:00
|
|
|
|
2015-06-19 18:35:30 +01:00
|
|
|
postPatch = ''
|
2016-08-04 20:26:05 +01: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 10:55:48 +01:00
|
|
|
'return sandbox_binary;' \
|
|
|
|
'return base::FilePath(GetDevelSandboxPath());'
|
2016-08-04 20:26:05 +01:00
|
|
|
|
2017-03-07 10:10:58 +00:00
|
|
|
sed -i -e 's@"\(#!\)\?.*xdg-@"\1${xdg_utils}/bin/xdg-@' \
|
|
|
|
chrome/browser/shell_integration_linux.cc
|
|
|
|
|
2016-09-05 17:59:00 +01:00
|
|
|
sed -i -e '/lib_loader.*Load/s!"\(libudev\.so\)!"${systemd.lib}/lib/\1!' \
|
2015-01-23 00:48:56 +00: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 18:04:22 +01:00
|
|
|
|
2016-03-30 00:05:07 +01:00
|
|
|
sed -i -re 's/([^:])\<(isnan *\()/\1std::\2/g' \
|
|
|
|
chrome/browser/ui/webui/engagement/site_engagement_ui.cc
|
2016-10-29 03:05:53 +01:00
|
|
|
|
|
|
|
sed -i -e '/#include/ {
|
|
|
|
i #include <algorithm>
|
|
|
|
:l; n; bl
|
|
|
|
}' gpu/config/gpu_control_list.cc
|
|
|
|
|
2017-06-18 03:29:22 +01: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 03:05:53 +01:00
|
|
|
patchShebangs .
|
2017-05-14 14:03:21 +01: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-06 23:54:10 +01:00
|
|
|
|
|
|
|
# remove unused third-party
|
2018-05-12 01:19:44 +01:00
|
|
|
# in third_party/crashpad third_party/zlib contains just a header-adapter
|
2017-07-06 23:54:10 +01:00
|
|
|
for lib in ${toString gnSystemLibraries}; do
|
|
|
|
find -type f -path "*third_party/$lib/*" \
|
2018-05-12 01:19:44 +01:00
|
|
|
\! -path "*third_party/crashpad/crashpad/third_party/zlib/*" \
|
2017-07-06 23:54:10 +01: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 13:31:54 +00:00
|
|
|
'' + optionalString stdenv.isAarch64 ''
|
|
|
|
substituteInPlace build/toolchain/linux/BUILD.gn \
|
|
|
|
--replace 'toolprefix = "aarch64-linux-gnu-"' 'toolprefix = ""'
|
2018-10-24 22:25:36 +01: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 06:36:26 +01:00
|
|
|
'';
|
|
|
|
|
2016-10-29 03:05:53 +01:00
|
|
|
gnFlags = mkGnFlags ({
|
2014-08-13 03:53:31 +01:00
|
|
|
linux_use_bundled_binutils = false;
|
2018-10-24 22:25:36 +01:00
|
|
|
use_lld = false;
|
2017-02-08 19:42:06 +00:00
|
|
|
use_gold = true;
|
|
|
|
gold_path = "${stdenv.cc}/bin";
|
2016-10-29 03:05:53 +01:00
|
|
|
is_debug = false;
|
2018-11-01 17:49:52 +00:00
|
|
|
# at least 2X compilation speedup
|
|
|
|
use_jumbo_build = true;
|
2016-03-28 10:31:21 +01:00
|
|
|
|
2014-04-01 06:36:26 +01:00
|
|
|
proprietary_codecs = false;
|
2015-12-29 18:32:30 +00:00
|
|
|
use_sysroot = false;
|
2014-04-01 06:36:26 +01:00
|
|
|
use_gnome_keyring = gnomeKeyringSupport;
|
|
|
|
use_gio = gnomeSupport;
|
2016-10-29 03:05:53 +01:00
|
|
|
enable_nacl = enableNaCl;
|
2016-11-08 19:18:15 +00:00
|
|
|
enable_widevine = enableWideVine;
|
2014-04-01 06:36:26 +01:00
|
|
|
use_cups = cupsSupport;
|
2017-07-31 09:01:15 +01:00
|
|
|
|
2016-10-29 03:05:53 +01:00
|
|
|
treat_warnings_as_errors = false;
|
2018-10-24 22:25:36 +01:00
|
|
|
is_clang = stdenv.cc.isClang;
|
2017-07-31 09:01:15 +01:00
|
|
|
clang_use_chrome_plugins = false;
|
|
|
|
remove_webcore_debug_symbols = true;
|
|
|
|
enable_swiftshader = false;
|
|
|
|
fieldtrial_testing_like_official_build = true;
|
2014-04-01 06:36:26 +01:00
|
|
|
|
2014-04-19 14:25:21 +01:00
|
|
|
# Google API keys, see:
|
|
|
|
# http://www.chromium.org/developers/how-tos/api-keys
|
2014-04-01 06:36:26 +01: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 17:42:24 +01:00
|
|
|
enable_hangout_services_extension = true;
|
2014-04-01 06:36:26 +01:00
|
|
|
ffmpeg_branding = "Chrome";
|
2016-10-29 03:05:53 +01:00
|
|
|
} // optionalAttrs pulseSupport {
|
|
|
|
use_pulseaudio = true;
|
|
|
|
link_pulseaudio = true;
|
|
|
|
} // (extraAttrs.gnFlags or {}));
|
2014-04-01 06:36:26 +01:00
|
|
|
|
|
|
|
configurePhase = ''
|
2017-02-08 19:48:05 +00:00
|
|
|
runHook preConfigure
|
|
|
|
|
2014-04-01 06:36:26 +01:00
|
|
|
# This is to ensure expansion of $out.
|
|
|
|
libExecPath="${libExecPath}"
|
2016-10-29 03:05:53 +01:00
|
|
|
python build/linux/unbundle/replace_gn_files.py \
|
|
|
|
--system-libraries ${toString gnSystemLibraries}
|
2018-09-07 20:34:47 +01:00
|
|
|
${gn}/bin/gn gen --args=${escapeShellArg gnFlags} out/Release | tee gn-gen-outputs.txt
|
2018-06-19 01:48:42 +01: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 19:48:05 +00:00
|
|
|
|
|
|
|
runHook postConfigure
|
2014-04-01 06:36:26 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = let
|
2017-09-01 11:24:47 +01: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 03:49:53 +01:00
|
|
|
buildCommand = target: ''
|
2017-02-08 19:47:07 +00:00
|
|
|
ninja -C "${buildPath}" \
|
2017-09-01 11:24:47 +01:00
|
|
|
-j$(( ($NIX_BUILD_CORES+1) / 2 )) -l$(( $NIX_BUILD_CORES+1 )) \
|
2014-08-13 03:49:53 +01:00
|
|
|
"${target}"
|
2017-11-08 22:44:20 +00:00
|
|
|
(
|
|
|
|
source chrome/installer/linux/common/installer.include
|
|
|
|
PACKAGE=$packageName
|
|
|
|
MENUNAME="Chromium"
|
|
|
|
process_template chrome/app/resources/manpage.1.in "${buildPath}/chrome.1"
|
|
|
|
)
|
2017-12-08 03:44:06 +00:00
|
|
|
'' + optionalString (target == "mksnapshot" || target == "chrome") ''
|
|
|
|
paxmark m "${buildPath}/${target}"
|
2014-04-25 02:58:33 +01:00
|
|
|
'';
|
|
|
|
targets = extraAttrs.buildTargets or [];
|
|
|
|
commands = map buildCommand targets;
|
|
|
|
in concatStringsSep "\n" commands;
|
2014-04-01 06:36:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Remove some extraAttrs we supplied to the base attributes already.
|
|
|
|
in stdenv.mkDerivation (base // removeAttrs extraAttrs [
|
2016-10-29 03:05:53 +01:00
|
|
|
"name" "gnFlags" "buildTargets"
|
2014-04-01 06:36:26 +01:00
|
|
|
])
|