2023-12-23 15:50:47 +03:00
|
|
|
{
|
2024-05-03 15:30:40 +03:00
|
|
|
description = "Treefmt: once CLI to format your repo";
|
2023-12-23 15:50:47 +03:00
|
|
|
|
2024-05-13 12:24:26 +03:00
|
|
|
nixConfig = {
|
|
|
|
extra-substituters = [
|
|
|
|
"https://numtide.cachix.org"
|
|
|
|
];
|
|
|
|
extra-trusted-public-keys = [
|
|
|
|
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-12-23 15:50:47 +03:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-05-08 10:54:58 +03:00
|
|
|
flake-parts = {
|
|
|
|
url = "github:hercules-ci/flake-parts";
|
|
|
|
inputs.nixpkgs-lib.follows = "nixpkgs";
|
|
|
|
};
|
2023-12-23 15:50:47 +03:00
|
|
|
treefmt-nix = {
|
2024-05-17 13:19:48 +03:00
|
|
|
url = "github:numtide/treefmt-nix";
|
2023-12-23 15:50:47 +03:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
devshell = {
|
|
|
|
url = "github:numtide/devshell";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
gomod2nix = {
|
|
|
|
url = "github:nix-community/gomod2nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-05-08 10:54:58 +03:00
|
|
|
inputs.flake-utils.follows = "devshell/flake-utils";
|
2023-12-23 15:50:47 +03:00
|
|
|
};
|
2024-01-10 18:45:57 +03:00
|
|
|
nix-filter.url = "github:numtide/nix-filter";
|
2024-05-01 16:24:30 +03:00
|
|
|
flake-compat.url = "github:nix-community/flake-compat";
|
2024-05-08 10:54:58 +03:00
|
|
|
nix-github-actions = {
|
|
|
|
url = "github:nix-community/nix-github-actions";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-12-23 15:50:47 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs @ {flake-parts, ...}:
|
|
|
|
flake-parts.lib.mkFlake
|
|
|
|
{
|
|
|
|
inherit inputs;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./nix
|
|
|
|
];
|
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
"aarch64-darwin"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|