diff --git a/flake.nix b/flake.nix index 1bae798d9b0..dbe7f6976f8 100644 --- a/flake.nix +++ b/flake.nix @@ -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; diff --git a/nix/ocaml.nix b/nix/ocaml.nix index 1233edb9273..81dfa28bbfc 100644 --- a/nix/ocaml.nix +++ b/nix/ocaml.nix @@ -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";