Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce mainnet/devnet build profiles in nix (rampup) #15027

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
# Main user-facing binaries.
packages = rec {
inherit (ocamlPackages)
mina mina_tests mina-ocaml-format test_executive;
mina devnet mainnet mina_tests mina-ocaml-format test_executive;
inherit (pkgs)
libp2p_helper kimchi_bindings_stubs snarky_js leaderboard
validation trace-tool zkapp-cli;
Expand Down
20 changes: 20 additions & 0 deletions nix/ocaml.nix
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,26 @@ let
# Same as above, but wrapped with version info.
mina = wrapMina self.mina-dev { };

mainnet-pkg = self.mina-dev.overrideAttrs (s: {
version = "mainnet";
configurePhase = ''
${s.configurePhase}
export DUNE_PROFILE=mainnet
'';
});

mainnet = wrapMina self.mainnet-pkg { };

devnet-pkg = self.mina-dev.overrideAttrs (s: {
version = "devnet";
configurePhase = ''
${s.configurePhase}
export DUNE_PROFILE=devnet
'';
});

devnet = wrapMina self.devnet-pkg { };

# Unit tests
mina_tests = runMinaCheck {
name = "tests";
Expand Down
Loading