28 lines
655 B
Nix
28 lines
655 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";
|
|
};
|
|
|
|
outputs = {flake-parts, ...} @ inputs:
|
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
|
imports = [
|
|
./rust
|
|
];
|
|
|
|
systems = ["aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin"];
|
|
|
|
perSystem = {pkgs, ...}: {formatter = pkgs.alejandra;};
|
|
};
|
|
}
|