feat!(cad): rename build123d template to cad

This commit is contained in:
2026-04-28 13:04:50 -05:00
parent 69f0dcbd66
commit 5683d7e84c
6 changed files with 11 additions and 11 deletions
+6 -6
View File
@@ -5,13 +5,13 @@
}: { }: {
flake = { flake = {
templates = { templates = {
build123d = { cad = {
path = ./template; path = ./template;
description = "A python flake with a build132d/cadquery parametric cad setup"; description = "A python flake with a build132d/cadquery parametric cad setup";
}; };
}; };
flakeModules.build123d = { flakeModules.cad = {
imports = [ imports = [
inputs.treefmt-nix.flakeModule inputs.treefmt-nix.flakeModule
]; ];
@@ -23,7 +23,7 @@
system, system,
... ...
}: let }: let
cfg = config.krantz.build123d; cfg = config.krantz.cad;
cq = inputs.cadquery.packages.${system}; cq = inputs.cadquery.packages.${system};
@@ -39,7 +39,7 @@
"3mf" "3mf"
]; ];
in { in {
options.krantz.build123d = { options.krantz.cad = {
enable = lib.mkEnableOption "executing a python build123d/cadquery file to generate 3d files"; enable = lib.mkEnableOption "executing a python build123d/cadquery file to generate 3d files";
builder = lib.mkOption { builder = lib.mkOption {
@@ -65,13 +65,13 @@
}; };
devShell = { devShell = {
enable = lib.mkEnableOption "a build123d development environment" // {default = true;}; enable = lib.mkEnableOption "a build123d/cadquery development environment" // {default = true;};
name = lib.mkOption { name = lib.mkOption {
description = "The name of the attribute in devShells to configure"; description = "The name of the attribute in devShells to configure";
type = lib.types.str; type = lib.types.str;
default = "default"; default = "default";
example = "build123d"; example = "cad";
}; };
extraAttrs = lib.mkOption { extraAttrs = lib.mkOption {
@@ -1,5 +1,5 @@
{ {
description = "made with build123d"; description = "made with build123d/cadquery";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
@@ -20,15 +20,15 @@
} @ inputs: } @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} { flake-parts.lib.mkFlake {inherit inputs;} {
imports = [ imports = [
project-templates.flakeModules.build123d project-templates.flakeModules.cad
]; ];
systems = ["aarch64-linux" "x86_64-linux" "aarch64-darwin"]; systems = ["aarch64-linux" "x86_64-linux" "aarch64-darwin"];
perSystem = {pkgs, ...}: { perSystem = {pkgs, ...}: {
krantz.build123d = { krantz.cad = {
enable = true; enable = true;
builder = ./build3d.py; builder = ./build.py;
outputName = "box"; outputName = "box";
}; };
+1 -1
View File
@@ -25,7 +25,7 @@
imports = [ imports = [
flake-parts.flakeModules.flakeModules flake-parts.flakeModules.flakeModules
./build123d ./cad
./rust ./rust
]; ];