From fdb8f5fd76c3fb53762cb23eca319744f1925e90 Mon Sep 17 00:00:00 2001 From: Quinn Unger Date: Tue, 7 Jul 2026 14:24:11 +0100 Subject: [PATCH] drop empty vlnv strings in directory names (#8) --- lib/runCore.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/runCore.nix b/lib/runCore.nix index c09a6a2..191683d 100644 --- a/lib/runCore.nix +++ b/lib/runCore.nix @@ -26,17 +26,19 @@ lib.extendMkDerivation { ... }: let + opt = str: lib.optional (str != "") str; + mapOpts = strs: builtins.concatLists (map opt strs); parsed = parseVlnv finalAttrs.passthru.core.name; fusesocWrapped = wrapFusesoc finalAttrs.passthru.dependencies; in { pname = with parsed; - lib.concatStringsSep "_" [ + lib.concatStringsSep "_" (mapOpts [ vendor library "${name}-${finalAttrs.passthru.target}" - ]; + ]); version = lib.versions.pad 3 parsed.version; passthru = passthru // { withTools = @@ -73,12 +75,12 @@ lib.extendMkDerivation { let vlnvDir = with parsed; - lib.concatStringsSep "_" [ + lib.concatStringsSep "_" (mapOpts [ vendor library name version - ]; + ]); toolName = lib.flatten [ finalAttrs.passthru.core.targets.${finalAttrs.passthru.target}.default_tool or [ ] ]; -- 2.51.2