about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Koenig <guillaume.koenig@scmfrance.fr>2016-11-15 13:26:16 +0100
committerVladimír Čunát <vcunat@gmail.com>2016-11-21 17:41:39 +0100
commitd662063a11582e06a29e3665f6595b5b827687e8 (patch)
tree27fbd8338468083bc8a1cc8b05b8ec42bbaa4044
parente8d86ee7b4b94f4eb9e1685d3a8659d3a932ea77 (diff)
firefox: fix geolocation feature (#20425)
Firefox uses a google API to perform geolocation. This API requires a
key which must be given at build time. This commit adds the key from
Chromium's derivation to Firefox.
-rw-r--r--pkgs/applications/networking/browsers/firefox/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/firefox/default.nix b/pkgs/applications/networking/browsers/firefox/default.nix
index 5c3749f83fa1e..e0689206382ce 100644
--- a/pkgs/applications/networking/browsers/firefox/default.nix
+++ b/pkgs/applications/networking/browsers/firefox/default.nix
@@ -70,6 +70,7 @@ common = { pname, version, sha512 }: stdenv.mkDerivation rec {
       "--enable-jemalloc"
       "--disable-gconf"
       "--enable-default-toolkit=cairo-gtk2"
+      "--with-google-api-keyfile=ga"
     ]
     ++ lib.optional enableGTK3 "--enable-default-toolkit=cairo-gtk3"
     ++ (if debugBuild then [ "--enable-debug" "--enable-profiling" ]
@@ -85,6 +86,11 @@ common = { pname, version, sha512 }: stdenv.mkDerivation rec {
       configureScript="$(realpath ./configure)"
       mkdir ../objdir
       cd ../objdir
+
+      # Google API key used by Chromium and Firefox.
+      # Note: These are for NixOS/nixpkgs use ONLY. For your own distribution,
+      # please get your own set of keys.
+      echo "AIzaSyDGi15Zwl11UNe6Y-5XW_upsfyw31qwZPI" >ga
     '';
 
   preInstall =