mirror of
https://github.com/mitchellh/zig-overlay.git
synced 2025-02-05 08:52:48 +02:00
Merge f7497b958a
into 1a8fb6f3a0
This commit is contained in:
commit
32c12bca4f
1 changed files with 29 additions and 1 deletions
30
README.md
30
README.md
|
@ -33,7 +33,6 @@ In your `flake.nix` file:
|
|||
};
|
||||
}
|
||||
```
|
||||
|
||||
In a shell:
|
||||
|
||||
```sh
|
||||
|
@ -44,7 +43,36 @@ $ nix shell 'github:mitchellh/zig-overlay#master-2021-02-13'
|
|||
# open a shell with latest nightly version
|
||||
$ nix shell 'github:mitchellh/zig-overlay#master'
|
||||
```
|
||||
### Adding zig as a package
|
||||
|
||||
To access zig as a package:
|
||||
|
||||
In your `flake.nix` file:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.zig.url = "github:mitchellh/zig-overlay";
|
||||
|
||||
outputs = { self, zig, ... }: {
|
||||
...
|
||||
modules = [
|
||||
{nixpkgs.overlays = [zig.overlays.default];}
|
||||
...
|
||||
...
|
||||
];
|
||||
};
|
||||
}
|
||||
```
|
||||
In your `configuration.nix` file :
|
||||
|
||||
```nix
|
||||
{pkgs,inputs, ...}: {
|
||||
...
|
||||
environment.systemPackages = [
|
||||
pkgs.zigpkgs.master # or <version>/master-<date>/
|
||||
]
|
||||
}
|
||||
```
|
||||
### Compiler Development
|
||||
|
||||
This flake outputs a template that makes it easy to work on the Zig
|
||||
|
|
Loading…
Add table
Reference in a new issue