Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,24 @@ docker run -w /app -v $(pwd):/app abice/go-enum:latest
docker run -w /app -v $(pwd):/app abice/go-enum:v0.9.0
```

### Using Nixpkgs

You can get `go-enum` from `nixpkgs` (currently only available in the `nixos-unstable` branch).

```shell
# nix2 nix-shell
nix-shell -p go-enum

# nix3 nix shell
nix shell nixpkgs#go-enum

```

```nix
# NixOS config
environment.systemPackages = [ pkgs.go-enum ];
```

## Adding it to your project

### Using go generate
Expand Down