summary refs log tree commit diff
path: root/pkgs/top-level/impure.nix
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2017-09-14 01:03:39 +0300
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2017-09-14 01:03:39 +0300
commit0c368ef02f40fdc01641959be0d6a3ee8c1df5ff (patch)
treec7e627a2c03f1d6d403dab501254ba8cf548b559 /pkgs/top-level/impure.nix
parent62711f426536c2a1e2b80947fa352a0f8a5a127f (diff)
downloadnixpkgs-0c368ef02f40fdc01641959be0d6a3ee8c1df5ff.tar
nixpkgs-0c368ef02f40fdc01641959be0d6a3ee8c1df5ff.tar.gz
nixpkgs-0c368ef02f40fdc01641959be0d6a3ee8c1df5ff.tar.bz2
nixpkgs-0c368ef02f40fdc01641959be0d6a3ee8c1df5ff.tar.lz
nixpkgs-0c368ef02f40fdc01641959be0d6a3ee8c1df5ff.tar.xz
nixpkgs-0c368ef02f40fdc01641959be0d6a3ee8c1df5ff.tar.zst
nixpkgs-0c368ef02f40fdc01641959be0d6a3ee8c1df5ff.zip
treewide: Escape backslash in strings properly
"\." is apparently the same as "." wheras the correct one is "\\."
Diffstat (limited to 'pkgs/top-level/impure.nix')
-rw-r--r--pkgs/top-level/impure.nix2
1 files changed, 1 insertions, 1 deletions
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