feat(tvix/boot): Use buildGoModule instead of buildGo for tvix-init
//tvix depending less on other parts of depot is prefered as it will help with extending the josh workspace of tvix. Change-Id: Ifcac3af1782dfd82e7543cb4c3ae57fbd186edff Reviewed-on: https://cl.tvl.fyi/c/depot/+/12250 Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
7b1acc5c16
commit
0714184b1f
1 changed files with 8 additions and 5 deletions
|
@ -1,13 +1,16 @@
|
|||
{ depot, pkgs, ... }:
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
rec {
|
||||
# A binary that sets up /nix/store from virtiofs, lists all store paths, and
|
||||
# powers off the machine.
|
||||
tvix-init = depot.nix.buildGo.program {
|
||||
tvix-init = pkgs.buildGoModule rec {
|
||||
name = "tvix-init";
|
||||
srcs = [
|
||||
./tvix-init.go
|
||||
];
|
||||
src = lib.fileset.toSource {
|
||||
root = ./.;
|
||||
fileset = ./tvix-init.go;
|
||||
};
|
||||
vendorHash = null;
|
||||
postPatch = "go mod init ${name}";
|
||||
};
|
||||
|
||||
# A kernel with virtiofs support baked in
|
||||
|
|
Loading…
Reference in a new issue