nix-config: cdd6629247775730f5d8bf5601e94cdd328822fb

     1: self: super:
     2: 
     3: with {
     4:   inherit (builtins) compareVersions toJSON;
     5:   inherit (self.nix-helpers) onlineCheck;
     6: }; {
     7:   overrides = {
     8:     nix-config-version-check =
     9:       name:
    10:       {
    11:         extra ? [ ],
    12:         script,
    13:         url,
    14:         version,
    15:       }:
    16:       with {
    17:         latest = import (
    18:           self.runCommand "latest-${name}.nix" { page = builtins.fetchurl url; } script
    19:         );
    20:       };
    21:       extra
    22:       ++
    23:         super.lib.optional (onlineCheck && compareVersions version latest == -1)
    24:           (toJSON {
    25:             inherit latest version;
    26:             WARNING = "Newer ${name} is available";
    27:           });
    28:   };
    29: }

Generated by git2html.