File tree 6 files changed +77
-60
lines changed
clients/consensus/lodestar
6 files changed +77
-60
lines changed Original file line number Diff line number Diff line change 18
18
inputs . lib-extras . follows = "lib-extras" ;
19
19
inputs . nixpkgs . follows = "nixpkgs-unstable" ;
20
20
inputs . treefmt-nix . follows = "treefmt-nix" ;
21
+ inputs . devour-flake . follows = "devour-flake" ;
21
22
} ;
22
23
23
24
foundry-nix = {
91
92
pkgs ,
92
93
pkgsUnstable ,
93
94
system ,
95
+ self' ,
94
96
...
95
97
} : {
96
98
# pkgs
169
171
} ;
170
172
171
173
# checks
172
- checks = let
173
- devour-flake = pkgs . callPackage inputs . devour-flake { } ;
174
- in
174
+ checks =
175
175
{
176
- nix-build-all = pkgs . writeShellApplication {
177
- name = "nix-build-all" ;
178
- runtimeInputs = [
179
- pkgs . nix
180
- devour-flake
181
- ] ;
182
- text = ''
183
- # Make sure that flake.lock is sync
184
- nix flake lock --no-update-lock-file
185
-
186
- # Do a full nix build (all outputs)
187
- devour-flake . "$@"
188
- '' ;
189
- } ;
176
+ # TODO: Restore this check whenever buildbot supports more specific checks
177
+ # nix-build-all = pkgs.writeShellApplication {
178
+ # name = "nix-build-all";
179
+ # runtimeInputs = [
180
+ # pkgs.nix
181
+ # devour-flake
182
+ # ];
183
+ # text = ''
184
+ # # Make sure that flake.lock is sync
185
+ # nix flake lock --no-update-lock-file
186
+ #
187
+ # # Do a full nix build (all outputs)
188
+ # devour-flake . "$@"
189
+ # '';
190
+ # };
190
191
}
192
+ # merge in the package derivations to force a build of all packages during a `nix flake check`
193
+ // ( with lib ; mapAttrs' ( n : nameValuePair "package-${ n } " ) ( filterAttrs ( n : _ : ! builtins . elem n [ "docs" ] ) self' . packages ) )
191
194
# mix in tests
192
195
// config . testing . checks ;
193
196
} ;
Original file line number Diff line number Diff line change 6
6
...
7
7
} : let
8
8
inherit ( pkgs ) stdenv runCommand ;
9
-
10
- mkdocs-custom =
11
- runCommand "mkdocs-custom" {
12
- buildInputs = [
13
- pkgs . python311
14
- pkgs . python311Packages . mkdocs
15
- pkgs . python311Packages . mkdocs-material
16
- inputs . mynixpkgs . packages . ${ system } . mkdocs-plugins
17
- ] ;
18
-
19
- meta . mainProgram = "mkdocs" ;
20
- } ''
21
- mkdir -p $out/bin
22
-
23
- cat <<MKDOCS > $out/bin/mkdocs
24
- #!${ pkgs . runtimeShell }
25
- set -euo pipefail
26
- export PYTHONPATH=$PYTHONPATH
27
- exec ${ pkgs . python311Packages . mkdocs } /bin/mkdocs "\$@"
28
- MKDOCS
29
-
30
- chmod +x $out/bin/mkdocs
31
- '' ;
32
9
in {
33
10
packages . docs = let
11
+ mkdocs-custom =
12
+ pkgs . runCommand "mkdocs-custom" {
13
+ buildInputs = [
14
+ pkgs . python311
15
+ pkgs . python311Packages . mkdocs
16
+ pkgs . python311Packages . mkdocs-material
17
+ inputs . mynixpkgs . packages . ${ system } . mkdocs-plugins
18
+ ] ;
19
+ meta . mainProgram = "mkdocs" ;
20
+ } ''
21
+ mkdir -p $out/bin
22
+
23
+ cat <<MKDOCS > $out/bin/mkdocs
24
+ #!${ pkgs . runtimeShell }
25
+ set -euo pipefail
26
+ export PYTHONPATH=$PYTHONPATH
27
+ exec ${ pkgs . python311Packages . mkdocs } /bin/mkdocs "\$@"
28
+ MKDOCS
29
+
30
+ chmod +x $out/bin/mkdocs
31
+ '' ;
34
32
docsPath = "./docs/nixos/modules" ;
35
33
nixosMarkdownDocs = runCommand "nixos-options" { } ''
36
34
mkdir $out
Original file line number Diff line number Diff line change
1
+ {
2
+ stdenv ,
3
+ fetchFromGitHub ,
4
+ fetchYarnDeps ,
5
+ nodePackages ,
6
+ } : let
7
+ name = "lodestar" ;
8
+ version = "1.12.0" ;
9
+
10
+ src = fetchFromGitHub {
11
+ owner = "ChainSafe" ;
12
+ repo = "lodestar" ;
13
+ ref = "refs/tags/v${ version } " ;
14
+ hash = "" ;
15
+ } ;
16
+
17
+ yarnDeps = stdenv . mkDerivation {
18
+ yarnLock = "${ src } /yarn.lock" ;
19
+ hash = "" ;
20
+
21
+ } ;
22
+ in yarnDeps
23
+ # in stdenv.mkDerivation {
24
+ # inherit name version src;
25
+ # }
Original file line number Diff line number Diff line change 20
20
prysm = callPackage ./clients/consensus/prysm { inherit bls blst ; } ;
21
21
teku = callPackage ./clients/consensus/teku { } ;
22
22
nimbus = callPackageUnstable ./clients/consensus/nimbus { } ;
23
+ lodestar = callPackage ./clients/consensus/lodestar { } ;
23
24
24
25
# Execution Clients
25
26
erigon = callPackage ./clients/execution/erigon { } ;
Original file line number Diff line number Diff line change @@ -66,6 +66,10 @@ poetry2nix.mkPoetryApplication {
66
66
changelog = "https://github.com/Ackee-Blockchain/wake/releases/tag/v${ version } " ;
67
67
mainProgram = "woke" ;
68
68
license = licenses . mit ;
69
+ platforms = [
70
+ "x86_64-linux"
71
+ "aarch64-linux"
72
+ ] ;
69
73
maintainers = with maintainers ; [ aldoborrero ] ;
70
74
} ;
71
75
}
You can’t perform that action at this time.
0 commit comments