feat!(cad): rename build123d template to cad
This commit is contained in:
@@ -5,13 +5,13 @@
|
||||
}: {
|
||||
flake = {
|
||||
templates = {
|
||||
build123d = {
|
||||
cad = {
|
||||
path = ./template;
|
||||
description = "A python flake with a build132d/cadquery parametric cad setup";
|
||||
};
|
||||
};
|
||||
|
||||
flakeModules.build123d = {
|
||||
flakeModules.cad = {
|
||||
imports = [
|
||||
inputs.treefmt-nix.flakeModule
|
||||
];
|
||||
@@ -23,7 +23,7 @@
|
||||
system,
|
||||
...
|
||||
}: let
|
||||
cfg = config.krantz.build123d;
|
||||
cfg = config.krantz.cad;
|
||||
|
||||
cq = inputs.cadquery.packages.${system};
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
"3mf"
|
||||
];
|
||||
in {
|
||||
options.krantz.build123d = {
|
||||
options.krantz.cad = {
|
||||
enable = lib.mkEnableOption "executing a python build123d/cadquery file to generate 3d files";
|
||||
|
||||
builder = lib.mkOption {
|
||||
@@ -65,13 +65,13 @@
|
||||
};
|
||||
|
||||
devShell = {
|
||||
enable = lib.mkEnableOption "a build123d development environment" // {default = true;};
|
||||
enable = lib.mkEnableOption "a build123d/cadquery development environment" // {default = true;};
|
||||
|
||||
name = lib.mkOption {
|
||||
description = "The name of the attribute in devShells to configure";
|
||||
type = lib.types.str;
|
||||
default = "default";
|
||||
example = "build123d";
|
||||
example = "cad";
|
||||
};
|
||||
|
||||
extraAttrs = lib.mkOption {
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
description = "made with build123d";
|
||||
description = "made with build123d/cadquery";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
@@ -20,15 +20,15 @@
|
||||
} @ inputs:
|
||||
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
imports = [
|
||||
project-templates.flakeModules.build123d
|
||||
project-templates.flakeModules.cad
|
||||
];
|
||||
|
||||
systems = ["aarch64-linux" "x86_64-linux" "aarch64-darwin"];
|
||||
|
||||
perSystem = {pkgs, ...}: {
|
||||
krantz.build123d = {
|
||||
krantz.cad = {
|
||||
enable = true;
|
||||
builder = ./build3d.py;
|
||||
builder = ./build.py;
|
||||
|
||||
outputName = "box";
|
||||
};
|
||||
Reference in New Issue
Block a user