mirror of
https://github.com/mitchellh/zig-overlay.git
synced 2025-02-05 17:02:48 +02:00
fix readme
This commit is contained in:
parent
223a4e3b2c
commit
084e695853
1 changed files with 9 additions and 7 deletions
|
@ -29,7 +29,7 @@ In your `flake.nix` file:
|
||||||
In a shell:
|
In a shell:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# run the latest version (0.7.1)
|
# run the latest version
|
||||||
$ nix run 'github:mitchellh/zig-overlay'
|
$ nix run 'github:mitchellh/zig-overlay'
|
||||||
# open a shell with master version dated 2021-02-13 (oldest version available)
|
# open a shell with master version dated 2021-02-13 (oldest version available)
|
||||||
$ nix shell 'github:mitchellh/zig-overlay#master."2021-02-13"'
|
$ nix shell 'github:mitchellh/zig-overlay#master."2021-02-13"'
|
||||||
|
@ -46,12 +46,14 @@ pinning of the nixpkgs repository, and a `system` argument which defaults to
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
# It is a good idea to use an exact commit in place of 'main' here.
|
# It is a good idea to use an exact commit in place of 'main' here.
|
||||||
let zigf = fetchTarball "https://github.com/mitchellh/zig-overlay/archive/main.tar.gz" in
|
let
|
||||||
|
zigf = fetchTarball "https://github.com/mitchellh/zig-overlay/archive/main.tar.gz"
|
||||||
|
in
|
||||||
# If you're using home-manager
|
# If you're using home-manager
|
||||||
home.packages = [ zigf.master.latest ]; # or any available version
|
home.packages = [ zigf.master.latest ]; # or any available version
|
||||||
|
|
||||||
# If you're using NixOS
|
# If you're using NixOS
|
||||||
users.user.<username>.packages = [ zigf.master.latest ]; # or any available version
|
users.user.<username>.packages = [ zigf.master.latest ]; # or any available version
|
||||||
# ...the rest of your configuration
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Thanks
|
## Thanks
|
||||||
|
|
Loading…
Add table
Reference in a new issue