fix readme

This commit is contained in:
Mitchell Hashimoto 2022-08-22 15:58:13 -07:00
parent 223a4e3b2c
commit 084e695853
No known key found for this signature in database
GPG key ID: 523D5DC389D273BC

View file

@ -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
# If you're using home-manager zigf = fetchTarball "https://github.com/mitchellh/zig-overlay/archive/main.tar.gz"
home.packages = [ zigf.master.latest ]; # or any available version in
# If you're using NixOS # If you're using home-manager
users.user.<username>.packages = [ zigf.master.latest ]; # or any available version home.packages = [ zigf.master.latest ]; # or any available version
# ...the rest of your configuration
# If you're using NixOS
users.user.<username>.packages = [ zigf.master.latest ]; # or any available version
``` ```
## Thanks ## Thanks