Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
61 lines (57 loc) · 1.67 KB
/
Copy pathflake.nix
File metadata and controls
61 lines (57 loc) · 1.67 KB
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
{
description = "Identus SDK for Rust";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
# Keep the Rust/Nix baseline aligned with NeoPRISM, the Identus Rust
# repository used as the toolchain etalon. Exact revisions live in
# flake.lock; see ADR 0002.
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
devshell.url = "github:numtide/devshell";
rust-overlay.url = "github:oxalica/rust-overlay";
# Current stable validation is independent from NeoPRISM's historical
# nightly overlay pin. Keep both inputs explicit and lock-reviewed.
stable-rust-overlay.url = "github:oxalica/rust-overlay/ca7f624be3935a5bc46d2c240515491ab8675503";
crane.url = "github:ipetkov/crane";
advisory-db = {
url = "github:rustsec/advisory-db";
flake = false;
};
openspec.url = "github:Fission-AI/OpenSpec";
};
outputs =
inputs@{
flake-parts,
nixpkgs,
rust-overlay,
stable-rust-overlay,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.devshell.flakeModule
./nix/rust-toolchain.nix
./nix/docs-site.nix
./nix/devshells
./nix/checks
./nix/apps
];
systems = [
"x86_64-linux"
"aarch64-darwin"
];
perSystem =
{ system, ... }:
{
_module.args = {
pkgs = import nixpkgs {
inherit system;
overlays = [ (import rust-overlay) ];
};
stablePkgs = import nixpkgs {
inherit system;
overlays = [ (import stable-rust-overlay) ];
};
};
};
};
}