Skip to content

Commit

Permalink
treewide: lib.unique & lib.sort -> lib.fastUnique
Browse files Browse the repository at this point in the history
  • Loading branch information
bb010g committed Apr 14, 2021
1 parent 5d25df5 commit 9ae98bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/firewall.nix
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ let
'';

canonicalizePortList =
ports: lib.unique (builtins.sort builtins.lessThan ports);
ports: lib.fastUnique builtins.lessThan ports;

commonOptions = {
allowedTCPPorts = mkOption {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/typesetting/tex/texlive/combine.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let
++ lib.optional (lib.any pkgNeedsRuby splitBin.wrong) ruby;
};

uniqueStrings = list: lib.sort (a: b: a < b) (lib.unique list);
uniqueStrings = list: lib.fastUnique (a: b: a < b) list;

mkUniqueOutPaths = pkgs: uniqueStrings
(map (p: p.outPath) (builtins.filter lib.isDerivation pkgs));
Expand Down

0 comments on commit 9ae98bf

Please sign in to comment.