File tree Expand file tree Collapse file tree 3 files changed +65
-36
lines changed Expand file tree Collapse file tree 3 files changed +65
-36
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ inputs ,
4+ ...
5+ } :
6+ {
7+ perSystem =
8+ {
9+ inputs' ,
10+ self' ,
11+ pkgs ,
12+ ...
13+ } :
14+ let
15+ inherit ( lib ) optionalAttrs ;
16+ inherit ( pkgs ) system ;
17+ inherit ( pkgs . hostPlatform ) isLinux ;
18+ in
19+ rec {
20+ checks =
21+ self' . packages
22+ // {
23+ inherit ( self' . legacyPackages ) rustToolchain ;
24+ inherit ( self' . legacyPackages . inputs . dlang-nix ) dub ;
25+ inherit ( self' . legacyPackages . inputs . nixpkgs )
26+ cachix
27+ nix
28+ nix-eval-jobs
29+ nix-fast-build
30+ ;
31+ inherit ( self' . legacyPackages . inputs . ethereum-nix ) foundry ;
32+
33+ pre-commit-check = inputs . pre-commit-hooks . lib . ${ system } . run {
34+ src = ../. ;
35+ hooks = {
36+ nixfmt-rfc-style . enable = true ;
37+ } ;
38+ } ;
39+ }
40+ // optionalAttrs ( system == "x86_64-linux" || system == "aarch64-darwin" ) {
41+ inherit ( self' . legacyPackages . inputs . ethereum-nix ) geth ;
42+ }
43+ // optionalAttrs isLinux {
44+ inherit ( inputs' . validator-ejector . packages ) validator-ejector ;
45+ }
46+ // optionalAttrs ( system == "x86_64-linux" ) {
47+ inherit ( pkgs ) terraform ;
48+ inherit ( self' . legacyPackages . inputs . terranix ) terranix ;
49+ inherit ( self' . legacyPackages . inputs . dlang-nix )
50+ dcd
51+ dscanner
52+ serve-d
53+ dmd
54+ ldc
55+ ;
56+ inherit ( self' . legacyPackages . inputs . ethereum-nix )
57+ mev-boost
58+ nethermind
59+ web3signer
60+ nimbus-eth2
61+ ;
62+ } ;
63+ } ;
64+ }
Original file line number Diff line number Diff line change 222222 in
223223 flake-parts . lib . mkFlake { inherit inputs ; } {
224224 imports = [
225+ ./checks
225226 ./modules
226227 ./packages
227228 ] ;
Original file line number Diff line number Diff line change 7272 inherit ( legacyPackages . inputs . nixpkgs ) cachix nix nix-eval-jobs ;
7373 } ;
7474 } ;
75- checks =
76- packages
77- // {
78- inherit ( legacyPackages ) rustToolchain ;
79- inherit ( legacyPackages . inputs . dlang-nix ) dub ;
80- inherit ( legacyPackages . inputs . nixpkgs )
81- cachix
82- nix
83- nix-eval-jobs
84- nix-fast-build
85- ;
86- inherit ( legacyPackages . inputs . ethereum-nix ) foundry ;
87- }
88- // optionalAttrs ( system == "x86_64-linux" || system == "aarch64-darwin" ) {
89- inherit ( legacyPackages . inputs . ethereum-nix ) geth ;
90- }
91- // optionalAttrs isLinux {
92- inherit ( inputs' . validator-ejector . packages ) validator-ejector ;
93- }
94- // optionalAttrs ( system == "x86_64-linux" ) {
95- inherit ( pkgs ) terraform ;
96- inherit ( legacyPackages . inputs . terranix ) terranix ;
97- inherit ( legacyPackages . inputs . dlang-nix )
98- dcd
99- dscanner
100- serve-d
101- dmd
102- ldc
103- ;
104- inherit ( legacyPackages . inputs . ethereum-nix )
105- mev-boost
106- nethermind
107- web3signer
108- nimbus-eth2
109- ;
110- } ;
11175 } ;
11276}
You can’t perform that action at this time.
0 commit comments