b9093f1c64
Built and run Beta and Stable locally. Dev is surrently superseded by Stable so it doesn't matter much. - Dev: 47.0.2508.0 -> 48.0.2564.22 - Beta: 46.0.2490.64 -> 48.0.2564.23 - Stable: 45.0.2454.101 -> 47.0.2526.73 Changed the SSL dependencies to the supported configuration on Linux (according to Torne @Freenode/#chromium-support). - NSS is a dependency since it is used to access the ceritiface store. - Dropped system OpenSSL support, the bundled BoringSSL is used. This probably fixes issue #10555. Note that without this adjustment the build fails even. Dropped uneeded old patches.
41 lines
1.4 KiB
Nix
41 lines
1.4 KiB
Nix
{ stdenv, mkChromiumDerivation }:
|
|
|
|
with stdenv.lib;
|
|
|
|
mkChromiumDerivation (base: rec {
|
|
name = "chromium-browser";
|
|
packageName = "chromium";
|
|
buildTargets = [ "mksnapshot" "chrome_sandbox" "chrome" ];
|
|
|
|
installPhase = ''
|
|
mkdir -p "$libExecPath"
|
|
cp -v "$buildPath/"*.pak "$buildPath/"*.bin "$libExecPath/"
|
|
cp -v "$buildPath/icudtl.dat" "$libExecPath/"
|
|
cp -vLR "$buildPath/locales" "$buildPath/resources" "$libExecPath/"
|
|
cp -v "$buildPath/chrome" "$libExecPath/$packageName"
|
|
cp -v "$buildPath/chrome_sandbox" "$libExecPath/chrome-sandbox"
|
|
|
|
mkdir -vp "$out/share/man/man1"
|
|
cp -v "$buildPath/chrome.1" "$out/share/man/man1/$packageName.1"
|
|
|
|
for icon_file in chrome/app/theme/chromium/product_logo_*[0-9].png; do
|
|
num_and_suffix="''${icon_file##*logo_}"
|
|
icon_size="''${num_and_suffix%.*}"
|
|
expr "$icon_size" : "^[0-9][0-9]*$" || continue
|
|
logo_output_prefix="$out/share/icons/hicolor"
|
|
logo_output_path="$logo_output_prefix/''${icon_size}x''${icon_size}/apps"
|
|
mkdir -vp "$logo_output_path"
|
|
cp -v "$icon_file" "$logo_output_path/$packageName.png"
|
|
done
|
|
'';
|
|
|
|
preHook = "unset NIX_ENFORCE_PURITY";
|
|
|
|
meta = {
|
|
description = "An open source web browser from Google";
|
|
homepage = http://www.chromium.org/;
|
|
maintainers = with maintainers; [ chaoflow aszlig ];
|
|
license = licenses.bsd3;
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|