diff options
| author | Nathan Perry <np@nathanperry.dev> | 2024-08-14 01:34:16 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2024-08-14 03:29:44 -0400 |
| commit | a330a1fad3c1ccdd926297747c03fe95bcaa6587 (patch) | |
| tree | a8d7ccdfd0ac1d420b4346ad9c0badaf2d31868d /nix/default.nix | |
| parent | 7f5e8f7d7d467f6dd3321cfa7eb276396a21dc69 (diff) | |
nix: migrate functionality to clef
Diffstat (limited to 'nix/default.nix')
| -rw-r--r-- | nix/default.nix | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/nix/default.nix b/nix/default.nix deleted file mode 100644 index eee258c..0000000 --- a/nix/default.nix +++ /dev/null @@ -1,52 +0,0 @@ -{ - pkgs, - - src, - main_pcb, - main_sch, - - name, - outPath ? "share/npry/clef", - layers ? 2, -}: let - pcb_path = main_pcb; - sch_path = main_sch; - - pcb_args = { - inherit pcb_path src; - }; - - panelSrc = pkgs.callPackage ./panel.nix pcb_args; - panel = pkgs.callPackage ./. { - src = "${panelSrc}/share/npry/clef/panel"; - main_pcb = "panel.kicad_pcb"; - - name = "${name}.sub.panel"; - outPath = "${outPath}/panel"; - - inherit main_sch layers; - }; - - svg = pkgs.callPackage ./svg.nix (pcb_args // { nLayer = layers; }); - model = pkgs.callPackage ./model.nix pcb_args; - - fabrication = pkgs.callPackage ./fabrication.nix (pcb_args // { - inherit sch_path; - }); - - schematic = pkgs.callPackage ./schematic.nix { - inherit sch_path src; - }; - -in pkgs.callPackage ./board.nix { - inherit - svg - model - fabrication - schematic - name - outPath - panel - panelSrc - ; -} |
