earthly: add missing buildFlags and tags

(cherry picked from commit a5bf3427fbd1faeb979fca80da54c51bfbb2948c)
This commit is contained in:
Artturin 2021-06-03 19:31:57 +03:00 committed by github-actions[bot]
parent 5de44c1575
commit b4a822688b
1 changed files with 13 additions and 0 deletions

View File

@ -13,6 +13,19 @@ buildGoModule rec {
vendorSha256 = "sha256-q3dDV0eop2NxXHFrlppWsZrO2Hz1q5xhs1DnB6PvG9g=";
buildFlagsArray = ''
-ldflags=
-s -w
-X main.Version=v${version}
-X main.DefaultBuildkitdImage=earthly/buildkitd:v${version}
-extldflags -static
'';
BUILDTAGS = "dfrunmount dfrunsecurity dfsecrets dfssh dfrunnetwork";
preBuild = ''
makeFlagsArray+=(BUILD_TAGS="${BUILDTAGS}")
'';
postInstall = ''
mv $out/bin/debugger $out/bin/earthly-debugger
mv $out/bin/shellrepeater $out/bin/earthly-shellrepeater