From 0c368ef02f40fdc01641959be0d6a3ee8c1df5ff Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Thu, 14 Sep 2017 01:03:39 +0300 Subject: treewide: Escape backslash in strings properly "\." is apparently the same as "." wheras the correct one is "\\." --- pkgs/top-level/impure.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/top-level/impure.nix') diff --git a/pkgs/top-level/impure.nix b/pkgs/top-level/impure.nix index a4d313a1b99..a9f21e45aed 100644 --- a/pkgs/top-level/impure.nix +++ b/pkgs/top-level/impure.nix @@ -50,7 +50,7 @@ in # it's a directory, so the set of overlays from the directory, ordered lexicographically let content = readDir path; in map (n: import (path + ("/" + n))) - (builtins.filter (n: builtins.match ".*\.nix" n != null || pathExists (path + ("/" + n + "/default.nix"))) + (builtins.filter (n: builtins.match ".*\\.nix" n != null || pathExists (path + ("/" + n + "/default.nix"))) (attrNames content)) else # it's a file, so the result is the contents of the file itself -- cgit 1.4.1