Skip to content

Commit

Permalink
Add boot stub env var to env-with-sim nix devshell
Browse files Browse the repository at this point in the history
The Sonata simulator nix package includes a boot stub binary. This adds
an environment variable to the env-with-sim nix devshell that gives the
path to the stub binary.
  • Loading branch information
GregAC committed May 27, 2024
1 parent 08347ae commit 51f9aef
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 20 deletions.
43 changes: 24 additions & 19 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@
};
env-with-sim = pkgs.mkShell {
name = "sonata-sw-with-sim";
packages = default.nativeBuildInputs ++ [sonataSystemPkgs.sonata-simulator];
packages =
[sonataSystemPkgs.sonata-simulator]
++ default.nativeBuildInputs;
shellHook = ''
export SONATA_SIM_BOOT_STUB=${sonataSystemPkgs.sonata-sim-boot-stub.out}/share/sim_boot_stub
'';
};
};
};
Expand Down

0 comments on commit 51f9aef

Please sign in to comment.