Skip to content

Commit

Permalink
add nix and gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin67 committed Apr 26, 2024
1 parent 3dd9867 commit 296e102
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.DS_Store
.idea
*.log
tmp/

# Created by https://www.toptal.com/developers/gitignore/api/go,direnv
# Edit at https://www.toptal.com/developers/gitignore?templates=go,direnv

### direnv ###
.direnv
.envrc

### Go ###
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work

# End of https://www.toptal.com/developers/gitignore/api/go,direnv
19 changes: 19 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
let pkgs = import <nixos-23.11> { };

in pkgs.mkShell {
nativeBuildInputs = [
# Go
pkgs.go
pkgs.golangci-lint
pkgs.gotests
pkgs.gomodifytags
pkgs.gore
pkgs.gotools
pkgs.gocode
pkgs.protoc-gen-go
pkgs.goreleaser

# LSP
pkgs.gopls
];
}

0 comments on commit 296e102

Please sign in to comment.