firefox-bin: fix channel patching
The patchPhase wasn't being applied at all. This patch re-enables that and also re-thinks the setting that we want to have. Turning off the auto-update is more accurate and doesn't lose information like it did before.
This commit is contained in:
parent
3a6329db85
commit
6060940c24
@ -82,7 +82,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
src = fetchurl { inherit (source) url sha512; };
|
src = fetchurl { inherit (source) url sha512; };
|
||||||
|
|
||||||
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
|
phases = [ "unpackPhase" "patchPhase" "installPhase" "fixupPhase" ];
|
||||||
|
|
||||||
libPath = stdenv.lib.makeLibraryPath
|
libPath = stdenv.lib.makeLibraryPath
|
||||||
[ stdenv.cc.cc
|
[ stdenv.cc.cc
|
||||||
@ -142,8 +142,8 @@ stdenv.mkDerivation {
|
|||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -i -e '/^pref("app.update.channel",/d' defaults/pref/channel-prefs.js
|
# Don't download updates from Mozilla directly
|
||||||
echo 'pref("app.update.channel", "non-existing-channel")' >> defaults/pref/channel-prefs.js
|
echo 'pref("app.update.auto", "false");' >> defaults/pref/channel-prefs.js
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase =
|
installPhase =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user