2021-12-14 04:51:48 +01:00
|
|
|
{ depot, ... }:
|
2020-02-09 14:50:44 +01:00
|
|
|
|
2020-02-09 18:50:41 +01:00
|
|
|
let
|
2021-12-14 04:51:48 +01:00
|
|
|
inherit (depot.users.wpcarro) gopkgs;
|
|
|
|
|
|
|
|
auth = depot.nix.buildGo.package {
|
2020-02-09 18:50:41 +01:00
|
|
|
name = "auth";
|
|
|
|
srcs = [
|
|
|
|
./auth.go
|
|
|
|
];
|
2021-12-14 04:51:48 +01:00
|
|
|
deps = with gopkgs; [
|
2020-02-09 18:50:41 +01:00
|
|
|
utils
|
|
|
|
];
|
|
|
|
};
|
2022-01-30 17:06:58 +01:00
|
|
|
in
|
|
|
|
depot.nix.buildGo.program {
|
2020-02-09 14:50:44 +01:00
|
|
|
name = "token-server";
|
|
|
|
srcs = [
|
|
|
|
./tokens.go
|
|
|
|
];
|
2021-12-14 04:51:48 +01:00
|
|
|
deps = with gopkgs; [
|
2020-02-09 14:50:44 +01:00
|
|
|
kv
|
2020-02-09 18:50:41 +01:00
|
|
|
utils
|
|
|
|
auth
|
2020-02-09 14:50:44 +01:00
|
|
|
];
|
|
|
|
}
|