depot/go/trains/webapi/default.nix
Luke Granger-Brown 4f3356727a go/trains: use protos for defining the web API
This will probably be useful later when I make the web app...
2021-11-20 19:06:43 +00:00

17 lines
488 B
Nix

# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ depot, ... }:
(depot.third_party.buildGo.proto {
name = "webapi";
path = "hg.lukegb.com/lukegb/depot/go/trains/webapi";
goPackage = "";
proto = ./webapi.proto;
extraDeps = with depot.third_party; [
gopkgs."google.golang.org".protobuf.types.known.timestamppb
gopkgs."github.com".jackc.pgtype
];
}).overrideGo (old: {
srcs = old.srcs ++ [ ./utils.go ];
})