From c4309064a452a54604dac0664f8383433b762698 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 21 May 2024 07:16:52 +0200 Subject: lib: simplify mkPathable --- lib/default.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'lib') diff --git a/lib/default.nix b/lib/default.nix index 023566e5..a02fe34b 100644 --- a/lib/default.nix +++ b/lib/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}") -- cgit 1.4.1