-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
40 lines (36 loc) · 1020 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
{
description = "";
inputs.std.url = "github:divnix/std";
inputs.std.inputs.devshell.url = "github:numtide/devshell";
inputs.std.inputs.nixpkgs.follows = "nixpkgs";
inputs.fenix.url = "github:nix-community/fenix";
inputs.crane.url = "github:ipetkov/crane";
inputs.crane.inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "fenix/nixpkgs";
outputs = inputs @ {
self,
std,
...
}:
std.growOn {
inherit inputs;
systems = ["x86_64-linux" "aarch64-linux"];
cellsFrom = ./nix;
cellBlocks = with std.blockTypes; [
(installables "packages")
(devshells "shells")
(pkgs "rust")
];
} {
devShells = std.harvest self ["core" "shells"];
packages = std.harvest self ["rengarde" "packages"];
};
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
}