This commit is contained in:
2026-08-11 16:48:56 +02:00
commit 9964eaa875
11 changed files with 233 additions and 0 deletions

30
flake.nix Normal file
View File

@@ -0,0 +1,30 @@
{
description = "Rust project template";
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
flake-parts.url = "github:hercules-ci/flake-parts";
import-tree.url = "github:vic/import-tree";
};
outputs =
inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } (
{ ... }:
{
_module.args.metadata = fromTOML (builtins.readFile ./Cargo.toml);
systems = [
"x86_64-linux"
#"aarch64-darwin"
];
imports = [
(inputs.import-tree ./nix)
];
}
);
}