-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
41 lines (38 loc) · 1011 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
38
39
40
41
{
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable;
parts.url = github:hercules-ci/flake-parts;
treefmt-nix = {
url = github:numtide/treefmt-nix;
inputs.nixpkgs.follows = "nixpkgs";
};
inclusive = {
url = github:input-output-hk/nix-inclusive;
inputs.stdlib.follows = "parts/nixpkgs-lib";
};
utils = {
url = github:dermetfan/utils.zig;
inputs = {
nixpkgs.follows = "nixpkgs";
parts.follows = "parts";
treefmt-nix.follows = "treefmt-nix";
inclusive.follows = "inclusive";
};
};
};
outputs = inputs:
inputs.parts.lib.mkFlake {inherit inputs;} (_: {
systems = ["x86_64-linux"];
imports = [
nix/packages.nix
nix/devShells.nix
nix/formatter.nix
nix/hydraJobs.nix
];
perSystem = {inputs', ...}: {
_module.args.pkgs =
inputs'.nixpkgs.legacyPackages.extend
inputs.utils.overlays.zig;
};
});
}