mirror of
https://github.com/numtide/treefmt.git
synced 2024-08-17 12:50:26 +03:00
It now supports freeform type for settings allowing us to pass through pipeline options. Signed-off-by: Brian McGee <brian@bmcgee.ie>
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{
|
|
description = "Treefmt: once CLI to format your repo";
|
|
|
|
nixConfig = {
|
|
extra-substituters = [
|
|
"https://numtide.cachix.org"
|
|
];
|
|
extra-trusted-public-keys = [
|
|
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
|
|
];
|
|
};
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
flake-parts = {
|
|
url = "github:hercules-ci/flake-parts";
|
|
inputs.nixpkgs-lib.follows = "nixpkgs";
|
|
};
|
|
treefmt-nix = {
|
|
url = "github:numtide/treefmt-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
devshell = {
|
|
url = "github:numtide/devshell";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
gomod2nix = {
|
|
url = "github:nix-community/gomod2nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.flake-utils.follows = "devshell/flake-utils";
|
|
};
|
|
nix-filter.url = "github:numtide/nix-filter";
|
|
flake-compat.url = "github:nix-community/flake-compat";
|
|
nix-github-actions = {
|
|
url = "github:nix-community/nix-github-actions";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs @ {flake-parts, ...}:
|
|
flake-parts.lib.mkFlake
|
|
{
|
|
inherit inputs;
|
|
}
|
|
{
|
|
imports = [
|
|
./nix
|
|
];
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
"x86_64-darwin"
|
|
"aarch64-darwin"
|
|
];
|
|
};
|
|
}
|