An open API service indexing awesome lists of open source software.

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

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
```