blob: 8c7dfcb7967c30025d4c7e0279f60134d2e221aa (
plain)
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
68
69
70
|
{
description = "teawie moment";
nixConfig = {
extra-substituters = [
"https://cache.garnix.io"
];
extra-trusted-public-keys = [
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
];
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
# used for cargo audit
advisory-db = {
url = "github:rustsec/advisory-db";
flake = false;
};
# our build framework
crane = {
url = "github:ipetkov/crane";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-compat.follows = "compat";
inputs.flake-utils.follows = "utils";
};
# toolchain management
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
pre-commit = {
url = "github:cachix/pre-commit-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-stable.follows = "nixpkgs";
inputs.flake-compat.follows = "compat";
inputs.flake-utils.follows = "utils";
};
# this is just to avoid having multiple versions in flake.lock
compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
# ditto
utils.url = "github:numtide/flake-utils";
};
outputs = {
parts,
pre-commit,
...
} @ inputs:
parts.lib.mkFlake {inherit inputs;} {
imports = [
pre-commit.flakeModule
./parts
];
};
}
|