nix-templates/cpp/flake.nix
2025-06-20 15:12:13 +03:00

20 lines
624 B
Nix

{
description = "Minimal starting project for nix-based maturin package development";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/release-25.05";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
};
outputs = { self, flake-parts, rust-overlay, ... }@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
imports = [ ./nix/development.nix ];
perSystem = { system, config, pkgs, ... }: {
formatter = pkgs.nixpkgs-fmt;
};
};
}