Skip to content

Commit fe1fd46

Browse files
committed
refactor(packages): Move checks in different folder
1 parent 20bf0c7 commit fe1fd46

File tree

3 files changed

+57
-36
lines changed

3 files changed

+57
-36
lines changed

checks/default.nix

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
lib,
3+
...
4+
}:
5+
{
6+
perSystem =
7+
{
8+
inputs',
9+
self',
10+
pkgs,
11+
...
12+
}:
13+
let
14+
inherit (lib) optionalAttrs;
15+
inherit (pkgs) system;
16+
inherit (pkgs.hostPlatform) isLinux;
17+
in
18+
rec {
19+
checks =
20+
self'.packages
21+
// {
22+
inherit (self'.legacyPackages) rustToolchain;
23+
inherit (self'.legacyPackages.inputs.dlang-nix) dub;
24+
inherit (self'.legacyPackages.inputs.nixpkgs)
25+
cachix
26+
nix
27+
nix-eval-jobs
28+
nix-fast-build
29+
;
30+
inherit (self'.legacyPackages.inputs.ethereum-nix) foundry;
31+
}
32+
// optionalAttrs (system == "x86_64-linux" || system == "aarch64-darwin") {
33+
inherit (self'.legacyPackages.inputs.ethereum-nix) geth;
34+
}
35+
// optionalAttrs isLinux {
36+
inherit (inputs'.validator-ejector.packages) validator-ejector;
37+
}
38+
// optionalAttrs (system == "x86_64-linux") {
39+
inherit (pkgs) terraform;
40+
inherit (self'.legacyPackages.inputs.terranix) terranix;
41+
inherit (self'.legacyPackages.inputs.dlang-nix)
42+
dcd
43+
dscanner
44+
serve-d
45+
dmd
46+
ldc
47+
;
48+
inherit (self'.legacyPackages.inputs.ethereum-nix)
49+
mev-boost
50+
nethermind
51+
web3signer
52+
nimbus-eth2
53+
;
54+
};
55+
};
56+
}

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@
222222
in
223223
flake-parts.lib.mkFlake { inherit inputs; } {
224224
imports = [
225+
./checks
225226
./modules
226227
./packages
227228
];

packages/default.nix

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -72,41 +72,5 @@
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
}

0 commit comments

Comments
 (0)