2022-10-17 15:48:58 +00:00
|
|
|
{ pkgs ? import <nixpkgs> {}}:
|
|
|
|
with pkgs;
|
2022-10-15 01:46:30 +00:00
|
|
|
mkShell {
|
2022-10-17 15:48:58 +00:00
|
|
|
|
2022-10-15 01:46:30 +00:00
|
|
|
buildInputs = [
|
|
|
|
figlet
|
|
|
|
git
|
|
|
|
gnumake
|
|
|
|
|
|
|
|
# For installing ganache for local simulations
|
|
|
|
nodePackages.ganache-cli
|
|
|
|
] ++ 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
|
2022-10-15 01:46:30 +00:00
|
|
|
|
|
|
|
figlet "Welcome to Nimbus-eth2"
|
|
|
|
'';
|
|
|
|
}
|