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.
This commit is contained in:
Guillaume Koenig 2016-11-15 13:26:16 +01:00 committed by Vladimír Čunát
parent e8d86ee7b4
commit d662063a11
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -70,6 +70,7 @@ common = { pname, version, sha512 }: stdenv.mkDerivation rec {
"--enable-jemalloc" "--enable-jemalloc"
"--disable-gconf" "--disable-gconf"
"--enable-default-toolkit=cairo-gtk2" "--enable-default-toolkit=cairo-gtk2"
"--with-google-api-keyfile=ga"
] ]
++ lib.optional enableGTK3 "--enable-default-toolkit=cairo-gtk3" ++ lib.optional enableGTK3 "--enable-default-toolkit=cairo-gtk3"
++ (if debugBuild then [ "--enable-debug" "--enable-profiling" ] ++ (if debugBuild then [ "--enable-debug" "--enable-profiling" ]
@ -85,6 +86,11 @@ common = { pname, version, sha512 }: stdenv.mkDerivation rec {
configureScript="$(realpath ./configure)" configureScript="$(realpath ./configure)"
mkdir ../objdir mkdir ../objdir
cd ../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 = preInstall =