35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
{
|
|
description = "A flake with pre-commit hooks";
|
|
|
|
inputs = {
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
nix.url = "github:NixOS/nix";
|
|
nix.inputs.nixpkgs.follows = "nixpkgs";
|
|
nix-cargo-integration.url = "github:yusdacra/nix-cargo-integration";
|
|
nix-cargo-integration.inputs.nixpkgs.follows = "nixpkgs";
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = inputs@{ self, flake-parts, ... }:
|
|
flake-parts.lib.mkFlake
|
|
{ inherit inputs; }
|
|
({ lib, ... }: {
|
|
imports = [
|
|
inputs.nix-cargo-integration.flakeModule
|
|
inputs.flake-parts.flakeModules.partitions
|
|
./rust/nci.nix
|
|
];
|
|
systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
|
perSystem = { config, self', inputs', pkgs, ... }: {
|
|
packages.nix = inputs'.nix.packages.nix;
|
|
};
|
|
|
|
partitionedAttrs.devShells = "dev";
|
|
partitionedAttrs.checks = "dev";
|
|
partitionedAttrs.herculesCI = "dev";
|
|
partitions.dev.extraInputsFlake = ./dev;
|
|
partitions.dev.module = {
|
|
imports = [ ./dev/flake-module.nix ];
|
|
};
|
|
});
|
|
}
|