mirror of
https://github.com/mitchellh/zig-overlay.git
synced 2025-02-05 08:52:48 +02:00
document compiler-dev template
This commit is contained in:
parent
66817dde5b
commit
b2763f8604
1 changed files with 23 additions and 1 deletions
24
README.md
24
README.md
|
@ -15,10 +15,12 @@ The flake outputs are documented in `flake.nix` but an overview:
|
|||
* `packages.master-<date>` for a nightly release
|
||||
* `overlay` is an overlay that adds `zigpkgs` to be the packages
|
||||
exposed by this flake
|
||||
* `template.compiler-dev` to setup a development environment for Zig
|
||||
compiler development.
|
||||
|
||||
## Usage
|
||||
|
||||
### Flake Support
|
||||
### Flake
|
||||
|
||||
In your `flake.nix` file:
|
||||
|
||||
|
@ -43,6 +45,26 @@ $ nix shell 'github:mitchellh/zig-overlay#master-2021-02-13'
|
|||
$ nix shell 'github:mitchellh/zig-overlay#master'
|
||||
```
|
||||
|
||||
### Compiler Development
|
||||
|
||||
This flake outputs a template that makes it easy to work on the Zig
|
||||
compiler itself. If you're looking to contribute to the Zig compiler,
|
||||
here are the easy steps to setup a working development environment:
|
||||
|
||||
```sh
|
||||
# clone zig and go into that directory
|
||||
$ git clone https://github.com/ziglang/zig.git
|
||||
$ cd zig
|
||||
# setup the template
|
||||
$ nix flake init -t 'github.com:mitchellh/zig-overlay#compiler-dev'
|
||||
# Two options:
|
||||
# (1) start a shell, this forces bash
|
||||
$ nix develop
|
||||
# (2) If you have direnv installed, you can start the shell environment
|
||||
# in your active shell (fish, zsh, etc.):
|
||||
$ direnv allow
|
||||
```
|
||||
|
||||
## Thanks
|
||||
|
||||
This repository is originally hosted by the username `arqv`. This user
|
||||
|
|
Loading…
Add table
Reference in a new issue