Merge pull request #275120 from rhysmdnz/edge-updates-stable

microsoft-edge: Change update script to have consistent ordering of versions
This commit is contained in:
Sandro
2024-02-17 20:54:45 +01:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
@@ -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";
@@ -31,7 +31,7 @@ def latest_packages(packages: bytes):
old_package = latest_packages[channel]
if old_package.get_version() < package.get_version(): # type: ignore
latest_packages[channel] = package
return latest_packages
return OrderedDict(sorted(latest_packages.items(), key=lambda x:x[0]))
def nix_expressions(latest: dict[str, Packages]):