2024-07-11 22:14:11 -04:00
|
|
|
## Table of contents
|
2024-07-11 22:17:11 -04:00
|
|
|
|
|
|
|
- [`nix build`](##`nix build`)
|
2024-07-11 22:14:11 -04:00
|
|
|
|
2024-07-11 22:15:11 -04:00
|
|
|
### `nix build`
|
|
|
|
|
|
|
|
Command to build nix packages, either locally sourced or from third parties (like nixpkgs)
|
|
|
|
|
2024-07-11 22:16:11 -04:00
|
|
|
### Example
|
|
|
|
|
|
|
|
#### Local
|
|
|
|
|
2024-07-11 22:18:11 -04:00
|
|
|
Set something to build inside your Nix flake (`flake.nix`) then run `nix build`
|
|
|
|
|
2024-07-11 22:19:11 -04:00
|
|
|
```nix
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2024-07-11 22:18:11 -04:00
|
|
|
#### Third party/Remote
|
|
|
|
|
2024-07-11 22:19:11 -04:00
|
|
|
You can either grab something from GitHub (using the `github:user/repo*#optional_pkg`) or a URL
|