From 3406ea149cc8d7b14a335eae90d44c6f020819dd Mon Sep 17 00:00:00 2001 From: thomasjm Date: Fri, 1 Mar 2024 07:31:33 -0800 Subject: [PATCH] ui metadata: check for version as well --- codedown/uiMetadata.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codedown/uiMetadata.nix b/codedown/uiMetadata.nix index 6146241c..cb417d21 100644 --- a/codedown/uiMetadata.nix +++ b/codedown/uiMetadata.nix @@ -1,9 +1,9 @@ { lib }: rec { - chooseInterestingMeta = contents: { + chooseInterestingMeta = contents: (lib.optionalAttrs (contents ? "version") { version = contents.version; - } // (lib.optionalAttrs (contents ? "meta") ( + }) // (lib.optionalAttrs (contents ? "meta") ( lib.filterAttrs (n: v: n == "description" || n == "homepage"