37 lines
913 B
Nix
37 lines
913 B
Nix
{
|
|
description = "A collection of templates for various programming languages";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
treefmt-nix = {
|
|
url = "github:numtide/treefmt-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
crane.url = "github:ipetkov/crane";
|
|
|
|
cadquery = {
|
|
url = "github:vinszent/cq-flake";
|
|
# unfortunately dependencies are out of date so this needs it's own nixpkgs
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = {flake-parts, ...} @ inputs:
|
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
|
imports = [
|
|
flake-parts.flakeModules.flakeModules
|
|
|
|
./build123d
|
|
./rust
|
|
];
|
|
|
|
systems = ["aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin"];
|
|
|
|
perSystem = {pkgs, ...}: {formatter = pkgs.alejandra;};
|
|
};
|
|
}
|