mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
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; };
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
|
||||
phases = [ "unpackPhase" "patchPhase" "installPhase" "fixupPhase" ];
|
||||
|
||||
libPath = stdenv.lib.makeLibraryPath
|
||||
[ stdenv.cc.cc
|
||||
@ -142,8 +142,8 @@ stdenv.mkDerivation {
|
||||
dontPatchELF = true;
|
||||
|
||||
patchPhase = ''
|
||||
sed -i -e '/^pref("app.update.channel",/d' defaults/pref/channel-prefs.js
|
||||
echo 'pref("app.update.channel", "non-existing-channel")' >> defaults/pref/channel-prefs.js
|
||||
# Don't download updates from Mozilla directly
|
||||
echo 'pref("app.update.auto", "false");' >> defaults/pref/channel-prefs.js
|
||||
'';
|
||||
|
||||
installPhase =
|
||||
|
Loading…
Reference in New Issue
Block a user