https://github.com/patlux/nix-learning
My first steps with nix
https://github.com/patlux/nix-learning
Last synced: 3 months ago
JSON representation
My first steps with nix
- Host: GitHub
- URL: https://github.com/patlux/nix-learning
- Owner: patlux
- Created: 2025-02-08T20:56:02.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-09T21:54:22.000Z (4 months ago)
- Last Synced: 2025-03-07T01:47:19.527Z (3 months ago)
- Language: Zig
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nix-learning
My first steps with nix
- [x] Follow the [Nix language basics](https://nix.dev/tutorials/nix-language)
- [x] Follow [Packaging existing software](https://nix.dev/tutorials/packaging-existing-software)
- [x] Packaging another existing "real" software
- [x] Packaging a custom app (zig)
- [ ] Adding overlay to use an older zig version```sh
make
```## Packaging existing software
https://nix.dev/tutorials/packaging-existing-software
I managed to package a rust-based tool named [yek](https://github.com/bodo-run/yek/tree/main). To create the package and execute it:
```sh
# Executes "nix-build" (old way)
make yek
./package/result/bin/yek# To build using the new Nix commands:
cd packages
nix build
```## Packaging own app
See ./zig-app
```sh
cd ./zig-app
# build & run
nix build
./result/bin/zig-app# or in one command
nix run
```