Skip to content

Commit

Permalink
chore: remove Nix (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-riecken authored Jul 18, 2024
1 parent 9cd3c04 commit 5a56ac1
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 749 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,14 @@ jobs:
id: verify-changed-files-generate
with:
files: |
nix/gomod2nix.toml
docs/options.md
- name: Commit changes
if: steps.verify-changed-files-generate.outputs.files_changed == 'true'
run: |
git config --local user.email "[email protected]"
git config --local user.name "SchwarzIT Bot"
git add nix/gomod2nix.toml docs/options.md
git add toml docs/options.md
git commit -m "chore: regenerate files"
- name: Push changes
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ run: fmt ## Run a controller from your host

generate: ## Generates files
@go run cmd/options2md/main.go -o docs/options.md
@go run github.com/nix-community/gomod2nix@latest --outdir nix


lint: fmt download ## Lints all code with golangci-lint
Expand Down
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
`go/template` provides a **blueprint** for production-ready Go project layouts.

![go/template logo](docs/gotemplate.png)
> Credit to Renée French for the [Go Gopher logo](https://go.dev/blog/gopher)
> Credit to Renée French for the [Go Gopher logo](https://go.dev/blog/gopher)
> Credit to Go Authors for the [official Go logo](https://go.dev/blog/go-brand)
## Batteries included
Expand Down Expand Up @@ -44,16 +44,6 @@ go install github.com/schwarzit/go-template/cmd/gt@latest
Download the desired version for your operating system and processor architecture from the [go-template releases page](https://github.com/SchwarzIT/go-template/releases).
Make the file executable and place it in a directory available in your `$PATH`.

#### nix

`go-template` also provides a [flake.nix](flake.nix) to install it via [nix package manager](https://github.com/NixOS/nix).

You can also try out `go-template` without installing:

```shell
nix run github:schwarzit/go-template
```

### Preconditions

`go/template`'s `gt` CLI requires at least the following executables on `$PATH` to run succesfully:
Expand Down
93 changes: 0 additions & 93 deletions flake.lock

This file was deleted.

42 changes: 0 additions & 42 deletions flake.nix

This file was deleted.

Loading

0 comments on commit 5a56ac1

Please sign in to comment.