twitterchiver: move archiver to subattribute

This commit is contained in:
Luke Granger-Brown 2020-10-04 01:25:36 +01:00
parent ee7ad0adfd
commit c384c31248
2 changed files with 11 additions and 9 deletions

View file

@ -11,8 +11,8 @@ let
ciPackages = prefixAttrs "pkg" depot.nix.pkgs; ciPackages = prefixAttrs "pkg" depot.nix.pkgs;
ciOther = prefixAttrs "other" { ciOther = prefixAttrs "other" {
twitterchiver = depot.go.twitterchiver; twitterchiver-archiver = depot.go.twitterchiver.archiver;
twitterchiverDocker = depot.go.twitterchiver.dockerImage; twitterchiver-archiver-docker = depot.go.twitterchiver.archiver.dockerImage;
}; };
in in
pkgs.linkFarm "ci" (ciMachines ++ ciPackages ++ ciOther) pkgs.linkFarm "ci" (ciMachines ++ ciPackages ++ ciOther)

View file

@ -2,11 +2,13 @@
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
{ depot, ... }: depot.third_party.buildGo.program { { depot, ... }: {
name = "twitterchiver"; archiver = depot.third_party.buildGo.program {
name = "archiver";
srcs = [ ./archiver/archiver.go ]; srcs = [ ./archiver/archiver.go ];
deps = [ deps = [
depot.third_party.gopkgs."github.com".dghubble.oauth1 depot.third_party.gopkgs."github.com".dghubble.oauth1
depot.third_party.gopkgs."github.com".jackc.pgx.v4 depot.third_party.gopkgs."github.com".jackc.pgx.v4
]; ];
};
} }