-
Notifications
You must be signed in to change notification settings - Fork 177
/
flake.nix
34 lines (31 loc) · 906 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
description = "Modern Go Application example";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
goflake.url = "github:sagikazarmark/go-flake";
goflake.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, flake-utils, goflake, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ goflake.overlay ];
};
buildDeps = with pkgs; [ git go_1_17 gnumake ];
devDeps = with pkgs; buildDeps ++ [
golangci-lint
gotestsum
goreleaser
protobuf
protoc-gen-go
protoc-gen-go-grpc
protoc-gen-kit
# gqlgen
openapi-generator-cli
ent
];
in
{ devShell = pkgs.mkShell { buildInputs = devDeps; }; });
}