diff options
| author | Nathan Perry <np@nathanperry.dev> | 2024-08-15 04:51:57 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2024-08-15 04:55:43 -0400 |
| commit | 2283053901b5319333407bf377cc28a95c2ba150 (patch) | |
| tree | 0517213023d3a239e6f1f1ba78712e9cd96eec13 | |
| parent | f0a98ebd684c74695f897da1f7b9ea3503eceb44 (diff) | |
bom: fix wks inclusion, customization
| -rw-r--r-- | clef/nix/bom.nix | 14 |
1 files 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}" '' |
