forked from input-output-hk/ouroboros-leios
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
77 lines (63 loc) · 1.78 KB
/
flake.nix
File metadata and controls
77 lines (63 loc) · 1.78 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
description = "Ouroboros Leios";
nixConfig = {
extra-substituters = [
"https://cache.iog.io"
];
extra-trusted-public-keys = [
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
];
allow-import-from-derivation = true;
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
iogx.url = "github:input-output-hk/iogx";
leios-spec.url = "github:input-output-hk/ouroboros-leios-formal-spec?rev=a654a1761476fcf8e6a43aeedbc1455bd7ad77db";
flake-parts.url = "github:hercules-ci/flake-parts";
pre-commit-hooks.url = "github:cachix/git-hooks.nix";
# Used by demo/
ouroboros-consensus.url = "github:intersectmbo/ouroboros-consensus?ref=leios-prototype";
cardano-node-leios.url = "github:intersectmbo/cardano-node?ref=leios-prototype";
cardano-node.url = "github:intersectmbo/cardano-node?ref=bench/leios"; # For latest tools
};
outputs =
inputs@{
self,
nixpkgs,
flake-parts,
...
}:
let
inherit (nixpkgs) lib;
# Collect all the build.nix files (flake-parts modules)
buildDotNixes = import ./nix/findFilesRecursive.nix {
inherit lib;
toInclude = lib.hasSuffix "build.nix";
dir = ./.;
};
in
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.pre-commit-hooks.flakeModule
./nix/pkgs.nix
]
++ buildDotNixes;
debug = true;
systems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
];
flake.hydraJobs = import ./nix/hydra.nix {
flake = self;
inherit lib;
systems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
];
};
};
}