mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
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.
|
||||
overlays ? let
|
||||
isDir = path: pathExists (path + "/.");
|
||||
pathOverlays = try <nixpkgs-overlays> "";
|
||||
pathOverlays = try (toString <nixpkgs-overlays>) "";
|
||||
homeOverlaysFile = homeDir + "/.config/nixpkgs/overlays.nix";
|
||||
homeOverlaysDir = homeDir + "/.config/nixpkgs/overlays";
|
||||
overlays = path:
|
||||
|
Loading…
Reference in New Issue
Block a user