-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
71 lines (66 loc) · 2.18 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
68
69
70
71
{
nixConfig.extra-substituters = [
"https://nixify.cachix.org"
"https://rvolosatovs.cachix.org"
"https://crane.cachix.org"
"https://nix-community.cachix.org"
"https://cache.garnix.io"
];
nixConfig.extra-trusted-public-keys = [
"nixify.cachix.org-1:95SiUQuf8Ij0hwDweALJsLtnMyv/otZamWNRp1Q1pXw="
"rvolosatovs.cachix.org-1:eRYUO4OXTSmpDFWu4wX3/X08MsP01baqGKi9GsoAmQ8="
"crane.cachix.org-1:8Scfpmn9w+hGdXH/Q9tTLiYAE/2dnJYRJP7kl80GuRk="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
];
description = "Simple and extensible nix flake bootstrapping library for real-world projects";
inputs.advisory-db.flake = false;
inputs.advisory-db.url = "github:rustsec/advisory-db";
inputs.crane.url = "github:ipetkov/crane";
inputs.fenix.inputs.nixpkgs.follows = "nixpkgs-nixos";
inputs.fenix.url = "github:nix-community/fenix";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.macos-sdk.url = "https://github.com/roblabla/MacOSX-SDKs/releases/download/macosx14.0/MacOSX14.0.sdk.tar.xz";
inputs.macos-sdk.flake = false;
inputs.nix-filter.url = "github:numtide/nix-filter";
inputs.nix-log.url = "github:rvolosatovs/nix-log";
inputs.nixlib.url = "github:nix-community/nixpkgs.lib";
inputs.nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-24.11-darwin";
inputs.nixpkgs-nixos.url = "github:nixos/nixpkgs/nixos-24.11";
inputs.rust-overlay.inputs.nixpkgs.follows = "nixpkgs-nixos";
inputs.rust-overlay.url = "github:oxalica/rust-overlay";
outputs =
inputs:
let
lib = import ./lib inputs;
in
with lib;
mkFlake {
excludePaths = [
".github"
".gitignore"
"flake.lock"
"flake.nix"
"LICENSE"
"README.md"
];
withDevShells =
{
pkgs,
devShells,
...
}:
extendDerivations {
buildInputs = with pkgs; [
buildah
wasmtime
zig
];
} devShells;
}
// {
inherit lib;
checks = import ./checks inputs;
templates = import ./templates inputs;
};
}