Skip to content

Instantly share code, notes, and snippets.

@itzurabhi
Last active February 17, 2023 12:25
Show Gist options
  • Save itzurabhi/9e5941815b77f196eb792ed4c035a134 to your computer and use it in GitHub Desktop.
Save itzurabhi/9e5941815b77f196eb792ed4c035a134 to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
goVersion = "1.19";
in
mkShell {
buildInputs = [
go_${goVersion}
golint
gofmt
godoc
protobuf
protoc-gen-go
nodejs
npm
];
postBuild = ''
# Run `go install` to install the `sqlc` tool
go install github.com/kyleconroy/sqlc/cmd/sqlc
'';
}
# nix-shell go-node-shell.nix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment