My first steps with nix
- Follow the Nix language basics
- Follow Packaging existing software
- Packaging another existing "real" software
- Packaging a custom app (zig)
- Adding overlay to use an older zig version
make
https://nix.dev/tutorials/packaging-existing-software
I managed to package a rust-based tool named yek. To create the package and execute it:
# Executes "nix-build" (old way)
make yek
./package/result/bin/yek
# To build using the new Nix commands:
cd packages
nix build
See ./zig-app
cd ./zig-app
# build & run
nix build
./result/bin/zig-app
# or in one command
nix run