chore(ops/besadii): switch from buildGo to buildGoModule
Change-Id: I0457419d6b74d4f4c3c999a656a22ddd6c9d9ac3 Reviewed-on: https://cl.snix.dev/c/snix/+/30186 Tested-by: besadii Reviewed-by: Ryan Lahfa <masterancpp@gmail.com> Reviewed-by: Florian Klink <flokli@flokli.de>
This commit is contained in:
parent
38804591de
commit
7aef14c57f
2 changed files with 18 additions and 3 deletions
|
|
@ -1,8 +1,20 @@
|
||||||
# This program is used as a Gerrit hook to trigger builds on
|
# This program is used as a Gerrit hook to trigger builds on
|
||||||
# Buildkite and perform other maintenance tasks.
|
# Buildkite and perform other maintenance tasks.
|
||||||
{ depot, ... }:
|
{ pkgs, ... }@args:
|
||||||
|
|
||||||
depot.nix.buildGo.program {
|
let
|
||||||
|
inherit (pkgs) lib;
|
||||||
|
in
|
||||||
|
|
||||||
|
pkgs.buildGoModule {
|
||||||
name = "besadii";
|
name = "besadii";
|
||||||
srcs = [ ./main.go ];
|
src = lib.fileset.toSource {
|
||||||
|
root = ./.;
|
||||||
|
fileset = lib.fileset.unions [
|
||||||
|
./main.go
|
||||||
|
./go.mod
|
||||||
|
];
|
||||||
|
};
|
||||||
|
# No third party dependencies
|
||||||
|
vendorHash = null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
3
ops/besadii/go.mod
Normal file
3
ops/besadii/go.mod
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
module code.tvl.fyi/ops/besadii
|
||||||
|
|
||||||
|
go 1.23.6
|
||||||
Loading…
Add table
Add a link
Reference in a new issue