2022-10-17 15:48:58 +00:00
|
|
|
{ pkgs ? import <nixpkgs> {}}:
|
2024-04-06 22:10:15 +00:00
|
|
|
|
2024-01-03 16:21:56 +00:00
|
|
|
let
|
|
|
|
mkdocs-packages = ps: with ps; [
|
|
|
|
mkdocs
|
|
|
|
mkdocs-material
|
|
|
|
mkdocs-material-extensions
|
|
|
|
pymdown-extensions
|
|
|
|
];
|
|
|
|
mkdocs-python = pkgs.python3.withPackages mkdocs-packages;
|
2024-04-06 22:10:15 +00:00
|
|
|
in pkgs.mkShell {
|
2022-10-17 15:48:58 +00:00
|
|
|
|
2024-04-06 22:10:15 +00:00
|
|
|
buildInputs = with pkgs; [
|
2022-10-15 01:46:30 +00:00
|
|
|
figlet
|
|
|
|
git
|
2024-01-03 16:11:49 +00:00
|
|
|
git-lfs
|
2022-10-15 01:46:30 +00:00
|
|
|
gnumake
|
2024-01-13 10:29:35 +00:00
|
|
|
getopt
|
2022-10-15 01:46:30 +00:00
|
|
|
|
2023-03-30 16:37:29 +00:00
|
|
|
# For the local simulation
|
|
|
|
openssl # for generating the JWT file
|
|
|
|
lsof # for killing processes by port
|
|
|
|
killall # for killing processes manually
|
|
|
|
curl # for working with the node APIs
|
2024-01-13 08:37:09 +00:00
|
|
|
openjdk # for running web3signer
|
2024-01-03 16:11:49 +00:00
|
|
|
|
2024-01-03 16:21:56 +00:00
|
|
|
mkdocs-python
|
2022-10-15 01:46:30 +00:00
|
|
|
] ++ lib.optionals (!stdenv.isDarwin) [
|
|
|
|
lsb-release
|
|
|
|
];
|
|
|
|
|
|
|
|
shellHook = ''
|
2022-10-17 15:48:58 +00:00
|
|
|
# By default, the Nix wrapper scripts for executing the system compilers
|
|
|
|
# will erase `-march=native` because this introduces impurity in the build.
|
|
|
|
# For the purposes of compiling Nimbus, this behavior is not desired:
|
|
|
|
export NIX_ENFORCE_NO_NATIVE=0
|
2024-01-13 10:29:35 +00:00
|
|
|
export USE_SYSTEM_GETOPT=1
|
2024-04-06 22:10:15 +00:00
|
|
|
export MAKEFLAGS="-j$NIX_BUILD_CORES"
|
2022-10-15 01:46:30 +00:00
|
|
|
|
|
|
|
figlet "Welcome to Nimbus-eth2"
|
|
|
|
'';
|
|
|
|
}
|