From 3c60e2ec39b11353779518e39a1d4aad13193b99 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 24 Jul 2013 04:26:14 +0200 Subject: [PATCH] chromium: Add API keys for NixOS. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As requested by some users, we finally have support for cloud sync, spelling, geolocation and a lot more of the services that require API keys from Google. Details about which services are involved can be found at: http://www.chromium.org/developers/how-tos/api-keys Thanks to Paweł Hajdan for giving us permission to distribute the API keys with our build of Chromium: > Note that the public Terms of Service do not allow distribution of the > API keys in any form. To make this work for you, on behalf of Google > Chrome Team I am providing you with: > Official permission to include Google API keys in your packages and to > distribute these packages. The remainder of the Terms of Service for > each API applies, but at this time you are not bound by the > requirement to only access the APIs for personal and development use, > and Additional quota for each API in an effort to adequately support > your users. As noted in the source: Those keys are for use in NixOS/nixpkgs ONLY! Signed-off-by: aszlig --- .../applications/networking/browsers/chromium/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/applications/networking/browsers/chromium/default.nix b/pkgs/applications/networking/browsers/chromium/default.nix index 3f072b509945..e8973f1bd72f 100644 --- a/pkgs/applications/networking/browsers/chromium/default.nix +++ b/pkgs/applications/networking/browsers/chromium/default.nix @@ -146,6 +146,14 @@ in stdenv.mkDerivation rec { linux_sandbox_path="${libExecPath}/${packageName}_sandbox"; linux_sandbox_chrome_path="${libExecPath}/${packageName}"; werror = ""; + + # Google API keys, see http://www.chromium.org/developers/how-tos/api-keys. + # 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;