-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(packages): Move checks in different folder
- Loading branch information
1 parent
68e732c
commit 2336e10
Showing
3 changed files
with
65 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
lib, | ||
inputs, | ||
... | ||
}: | ||
{ | ||
perSystem = | ||
{ | ||
inputs', | ||
self', | ||
pkgs, | ||
... | ||
}: | ||
let | ||
inherit (lib) optionalAttrs; | ||
inherit (pkgs) system; | ||
inherit (pkgs.hostPlatform) isLinux; | ||
in | ||
rec { | ||
checks = | ||
self'.packages | ||
// { | ||
inherit (self'.legacyPackages) rustToolchain; | ||
inherit (self'.legacyPackages.inputs.dlang-nix) dub; | ||
inherit (self'.legacyPackages.inputs.nixpkgs) | ||
cachix | ||
nix | ||
nix-eval-jobs | ||
nix-fast-build | ||
; | ||
inherit (self'.legacyPackages.inputs.ethereum-nix) foundry; | ||
|
||
pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run { | ||
src = ../.; | ||
hooks = { | ||
nixfmt-rfc-style.enable = true; | ||
}; | ||
}; | ||
} | ||
// optionalAttrs (system == "x86_64-linux" || system == "aarch64-darwin") { | ||
inherit (self'.legacyPackages.inputs.ethereum-nix) geth; | ||
} | ||
// optionalAttrs isLinux { | ||
inherit (inputs'.validator-ejector.packages) validator-ejector; | ||
} | ||
// optionalAttrs (system == "x86_64-linux") { | ||
inherit (pkgs) terraform; | ||
inherit (self'.legacyPackages.inputs.terranix) terranix; | ||
inherit (self'.legacyPackages.inputs.dlang-nix) | ||
dcd | ||
dscanner | ||
serve-d | ||
dmd | ||
ldc | ||
; | ||
inherit (self'.legacyPackages.inputs.ethereum-nix) | ||
mev-boost | ||
nethermind | ||
web3signer | ||
nimbus-eth2 | ||
; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -222,6 +222,7 @@ | |
in | ||
flake-parts.lib.mkFlake { inherit inputs; } { | ||
imports = [ | ||
./checks | ||
./modules | ||
./packages | ||
]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters