CLI Modifications
We have changed the following parts of the CLI (crate compiler-cli
):
new.rs
(glistix new
):- Added Nix-relevant file templates (
default.nix
,shell.nix
andflake.nix
); - Clone
glistix/stdlib
toexternals/stdlib
as a Git submodule by default; - Changed default
gleam.toml
to include Glistix-specific options.
- Added Nix-relevant file templates (
run.rs
(glistix run
,glistix test
):- Use
nix-instantiate
when callingglistix run
orglistix test
on the Nix target.
- Use
publish.rs
(glistix publish
):- Implement
[glistix.preview.hex-patch]
by replacing dependencies with what's specified inhex-patch
right before publishing.
- Implement
dependency.rs
(resolving versions for themanifest.toml
):- Implement
local-overrides
from[glistix.preview]
by replacing provided (local/Git) dependencies with what the root package specified for them, if overridden by the root.
- Implement
fs.rs
: Added Git operations used bynew.rs
.
glistix build
(build.rs
) wasn't directly modified, but it now supports --target nix
as well.