treewide: Escape backslash in strings properly

"\." is apparently the same as "." wheras the correct one is "\\."
This commit is contained in:
Tuomas Tynkkynen
2017-09-14 01:03:39 +03:00
parent 62711f4265
commit 0c368ef02f
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
};
files = builtins.filter (n: n != "default") (pkgs.lib.mapAttrsToList (name: type: let
m = builtins.match "(.*)\.nix" name;
m = builtins.match "(.*)\\.nix" name;
in if m == null then "default" else builtins.head m) (builtins.readDir ./.));
in (builtins.listToAttrs (map (name: {
inherit name;