treewide: Escape backslash in strings properly

"\." is apparently the same as "." wheras the correct one is "\\."

+4 -4
+2 -2
nixos/modules/services/misc/geoip-updater.nix
··· 238 238 239 239 assertions = [ 240 240 { assertion = (builtins.filter 241 - (x: builtins.match ".*\.(gz|xz)$" x == null) cfg.databases) == []; 241 + (x: builtins.match ".*\\.(gz|xz)$" x == null) cfg.databases) == []; 242 242 message = '' 243 243 services.geoip-updater.databases supports only .gz and .xz databases. 244 244 ··· 246 246 ${toString cfg.databases} 247 247 248 248 Offending element(s): 249 - ${toString (builtins.filter (x: builtins.match ".*\.(gz|xz)$" x == null) cfg.databases)}; 249 + ${toString (builtins.filter (x: builtins.match ".*\\.(gz|xz)$" x == null) cfg.databases)}; 250 250 ''; 251 251 } 252 252 ];
+1 -1
pkgs/development/idris-modules/default.nix
··· 26 26 }; 27 27 28 28 files = builtins.filter (n: n != "default") (pkgs.lib.mapAttrsToList (name: type: let 29 - m = builtins.match "(.*)\.nix" name; 29 + m = builtins.match "(.*)\\.nix" name; 30 30 in if m == null then "default" else builtins.head m) (builtins.readDir ./.)); 31 31 in (builtins.listToAttrs (map (name: { 32 32 inherit name;
+1 -1
pkgs/top-level/impure.nix
··· 50 50 # it's a directory, so the set of overlays from the directory, ordered lexicographically 51 51 let content = readDir path; in 52 52 map (n: import (path + ("/" + n))) 53 - (builtins.filter (n: builtins.match ".*\.nix" n != null || pathExists (path + ("/" + n + "/default.nix"))) 53 + (builtins.filter (n: builtins.match ".*\\.nix" n != null || pathExists (path + ("/" + n + "/default.nix"))) 54 54 (attrNames content)) 55 55 else 56 56 # it's a file, so the result is the contents of the file itself