impure.nix: stringify path from NIX_PATH
If impure.nix gets the path from NIX_PATH, the type is `path`, and `path+"/."` is a no-op. Stringify it first so `isDir` will return false if it's not, in fact, a dir. This way, single files can be specified with nixpkgs-overlays in the NIX_PATH.
This commit is contained in:
parent
977f9a129e
commit
20bb5fb0d9
@ -41,7 +41,7 @@ in
|
|||||||
# fix-point made by Nixpkgs.
|
# fix-point made by Nixpkgs.
|
||||||
overlays ? let
|
overlays ? let
|
||||||
isDir = path: pathExists (path + "/.");
|
isDir = path: pathExists (path + "/.");
|
||||||
pathOverlays = try <nixpkgs-overlays> "";
|
pathOverlays = try (toString <nixpkgs-overlays>) "";
|
||||||
homeOverlaysFile = homeDir + "/.config/nixpkgs/overlays.nix";
|
homeOverlaysFile = homeDir + "/.config/nixpkgs/overlays.nix";
|
||||||
homeOverlaysDir = homeDir + "/.config/nixpkgs/overlays";
|
homeOverlaysDir = homeDir + "/.config/nixpkgs/overlays";
|
||||||
overlays = path:
|
overlays = path:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user