Providing a shell.nix file for more conveniently fetching the compatible Zig version #1432
No reviewers
Labels
No labels
CI
all
basisu
blog
bug
build
contributor-friendly
core
correctness
deferred
dev
direct3d-headers
docs
driver-os-issue
duplicate
dxcompiler
editor
examples
experiment
feature-idea
feedback
flac
freetype
gamemode
gkurve
glfw
gpu
gpu-dawn
harfbuzz
help welcome
in-progress
infrastructure
invalid
libmach
linux-audio-headers
long-term
mach
mach.gfx
mach.math
mach.physics
mach.testing
model3d
needs-triage
object
opengl-headers
opus
os/linux
os/macos
os/wasm
os/windows
package-manager
priority
proposal
proposal-accepted
question
roadmap
slipped
stability
sysaudio
sysgpu
sysjs
validating-fix
vulkan-zig-generated
wayland-headers
website
wontfix
wrench
www
x11-headers
xcode-frameworks
zig-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hexops/mach!1432
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "sstitle/add-shell-nix-macos-0.4"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When trying out the examples for this repo, I was unable to run them on my machine due to a version mismatch with the most up-to-date version of Zig (v0.15.1).
In my opinion, it would be convenient to have a nice way to pull the correct version of Zig compatible with the repo for new users to have a more seamless experience when trying out the repo.
This is a "shell.nix" file for the 0.4 tagged branch. It looks for the
.zigversionfile in the repo root and fetches the appropriate version of Zig and makes it available on the command line. You can enter the Nix shell by runningnix-shellfrom the repo root as long as you have Nix installed. I like to install Nix using the convenient installer that you can find here from Determinate Systems.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.