all repos — nixfiles @ c4309064a452a54604dac0664f8383433b762698

System and user configuration, managed by nix and home-manager

lib: simplify mkPathable

Alan Pearce
commit

c4309064a452a54604dac0664f8383433b762698

parent

9d2ac307c112653091952c86bbe6797e17d0f484

1 file changed, 5 insertions(+), 8 deletions(-)

jump to
M lib/default.nixlib/default.nix
@@ -6,14 +6,11 @@ in
rec { importPathStore = p: "${append ../. "/${p}"}"; - mkPathable = s: - if - s.type == "local" - then - toString (lib.path.append ../. s.outPath) - else - toString s.outPath - ; + mkPathable = s: toString ( + if s.type == "local" + then (lib.path.append ../. s.outPath) + else s.outPath + ); mkNixPath = sources: lib.attrsets.mapAttrsToList (k: v: "${k}=${mkPathable v}")