summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/browsers/microsoft-edge/browser.nix
diff options
context:
space:
mode:
authorRhys Davies <rhys@memes.nz>2023-10-15 11:23:55 +1300
committerRhys Davies <rhys@memes.nz>2024-02-06 10:29:52 +1300
commit95a2ac0fd9938b30273148ae660eba72116727ac (patch)
tree5d2b9fc43c5d9bd7568b0a444690fc4dbfd6bfab /pkgs/applications/networking/browsers/microsoft-edge/browser.nix
parent939e432e4650d94bd5a179cad13f2ebcf7fc3c57 (diff)
microsoft-edge: Change update script to have consistent ordering of versions
The current behaviour means it follows the order they are published in microsofts repos which sometimes changes on updates. This changes it to sort by the branch name string which should be more consistent. This patch doesn't change the ordering in default.nix will leave that for the next update patch to make that patch more easily backportable.
Diffstat (limited to 'pkgs/applications/networking/browsers/microsoft-edge/browser.nix')
-rw-r--r--pkgs/applications/networking/browsers/microsoft-edge/browser.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/networking/browsers/microsoft-edge/browser.nix b/pkgs/applications/networking/browsers/microsoft-edge/browser.nix
index 9d3da97fff8c..a73768519086 100644
--- a/pkgs/applications/networking/browsers/microsoft-edge/browser.nix
+++ b/pkgs/applications/networking/browsers/microsoft-edge/browser.nix
@@ -180,7 +180,9 @@ stdenv.mkDerivation rec {
--add-flags ${lib.escapeShellArg commandLineArgs}
'';
- passthru.updateScript = ./update.py;
+ # We only want automatic updates for stable, beta and dev will get updated by the same script
+ # and are only used for testing.
+ passthru = lib.optionalAttrs (channel == "stable") { updateScript = ./update.py; };
meta = with lib; {
homepage = "https://www.microsoft.com/en-us/edge";