From 2283053901b5319333407bf377cc28a95c2ba150 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Thu, 15 Aug 2024 04:51:57 -0400 Subject: bom: fix wks inclusion, customization --- clef/nix/bom.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/clef/nix/bom.nix b/clef/nix/bom.nix index 7644939..fbff8ff 100644 --- a/clef/nix/bom.nix +++ b/clef/nix/bom.nix @@ -9,7 +9,11 @@ src, boardName ? (lib.removeSuffix ".kicad_pcb" (builtins.baseNameOf pcb_path)), - extraArgs ? [], + extraArgs ? [ + "--dark-mode" + "--include-tracks" + "--include-nets" + ], }: let sharePath = "share/npry/clef/bom"; @@ -26,13 +30,19 @@ in runCommand "${boardName}.bom" { include = [ (nix-filter.matchExt "kicad_pcb") (nix-filter.matchExt "kicad_pro") + (nix-filter.matchExt "kicad_wks") + + (_args: path: type: type == "directory") ]; }; } '' mkdir -p "$out/${sharePath}" + cd $src + generate_interactive_bom \ --dest-dir "$out/${sharePath}" \ - ${lib.concatMapStrings (arg: "${arg} \\n") extraArgs} \ + --no-browser \ + ${lib.concatMapStrings (arg: "${arg} \\\n") extraArgs} \ "$src/${pcb_path}" '' -- cgit v1.3.1