-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
67 lines (63 loc) · 1.93 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable;
"nixpkgs-24.05".url = github:NixOS/nixpkgs/release-24.05;
nix.url = github:NixOS/nix/2.19-maintenance;
parts.url = github:hercules-ci/flake-parts;
mission-control.url = github:Platonic-Systems/mission-control;
flake-root.url = github:srid/flake-root;
make-shell.url = github:nicknovitski/make-shell;
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";
make-shell.follows = "make-shell";
treefmt-nix.follows = "treefmt-nix";
inclusive.follows = "inclusive";
};
};
nix-sigstop = {
url = github:input-output-hk/nix-sigstop;
inputs = {
nixpkgs.follows = "nixpkgs";
parts.follows = "parts";
treefmt-nix.follows = "treefmt-nix";
inclusive.follows = "inclusive";
utils.follows = "utils";
};
};
};
outputs = inputs:
inputs.parts.lib.mkFlake {inherit inputs;} (_: {
systems = ["x86_64-linux"];
imports = [
nix/checks
nix/packages
nix/overlays
nix/devShells.nix
nix/formatter.nix
nix/hydraJobs.nix
nix/nixosModules.nix
];
perSystem = {inputs', ...}: {
_module.args.pkgs =
inputs'.nixpkgs.legacyPackages.appendOverlays
[
inputs.utils.overlays.zig
(_: prev: {
# Must use older wasmtime until the fix for https://github.com/bytecodealliance/wasmtime/issues/8890 lands in nixpkgs.
inherit (inputs."nixpkgs-24.05".legacyPackages.${prev.system}) wasmtime;
})
];
};
});
}