Unverified Commit a658647b authored by Emily's avatar Emily Committed by GitHub
Browse files

chromium: make warnObsoleteVersionConditional conditional (#397695)

parents c30004bd 8f16c095
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -46,8 +46,10 @@ let
    min-version: result:
    let
      min-supported-version = (lib.head (lib.attrValues electron-source)).unwrapped.info.chromium.version;
      # Warning can be toggled by changing the value of enabled:
      enabled = false;
    in
    lib.warnIf (lib.versionAtLeast min-supported-version min-version)
    lib.warnIf (enabled && lib.versionAtLeast min-supported-version min-version)
      "chromium: min-supported-version ${min-supported-version} is newer than a conditional bounded at ${min-version}. You can safely delete it."
      result;
  chromiumVersionAtLeast =