You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering, how people are developing stuff in runtime from a nix shell.
My struggle was two-ways:
in the default shell, changes to files in local runtime were not reflected in the build at all
the whole runtime directory got copied into its own helix-runtime derivation and not symlinked to <project-root>/runtime
For the first issue my workaround was to add a second devShell to flake.nix that declares projectRoot = builtins.toString ./. but that lead to issue two. For this my workaround is to change the devShell to this:
iruntimeDev=pkgs.mkShell{name="helix-runtime-dev-shell";shellHook='' export HELIX_RUNTIME=$(pwd)/runtime echo Set \$HELIX_RUNTIME to: $HELIX_RUNTIME '';};
But this feels quite hacky.
Is there some "official" way I am overlooking? How is others solution to conventiently work on runtime stuff without requiring the nix shell to rebuild on each edit?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was wondering, how people are developing stuff in
runtime
from a nix shell.My struggle was two-ways:
default
shell, changes to files in localruntime
were not reflected in the build at allruntime
directory got copied into its ownhelix-runtime
derivation and not symlinked to<project-root>/runtime
For the first issue my workaround was to add a second devShell to
flake.nix
that declaresprojectRoot = builtins.toString ./.
but that lead to issue two. For this my workaround is to change the devShell to this:But this feels quite hacky.
Is there some "official" way I am overlooking? How is others solution to conventiently work on runtime stuff without requiring the nix shell to rebuild on each edit?
Beta Was this translation helpful? Give feedback.
All reactions