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;
ciOther = prefixAttrs "other" {
twitterchiver = depot.go.twitterchiver;
twitterchiverDocker = depot.go.twitterchiver.dockerImage;
twitterchiver-archiver = depot.go.twitterchiver.archiver;
twitterchiver-archiver-docker = depot.go.twitterchiver.archiver.dockerImage;
};
in
pkgs.linkFarm "ci" (ciMachines ++ ciPackages ++ ciOther)

View file

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