-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
37 lines (33 loc) · 896 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
description = "Klein College PHP Coding Standards";
inputs = {
nixpkgs.follows = "nixos-unstable";
nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-trunk.url = "github:NixOS/nixpkgs/master";
flake-parts.url = "github:hercules-ci/flake-parts";
phps.url = "github:loophp/nix-shell";
pre-commit-hooks = {
url = "github:cachix/pre-commit-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.pre-commit-hooks.flakeModule
./nix/devshells.nix
./nix/git-hooks.nix
];
systems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-linux"
];
perSystem =
{ pkgs, ... }:
{
formatter = pkgs.nixfmt-rfc-style;
};
};
}