earthly: add missing buildFlags and tags
(cherry picked from commit a5bf3427fbd1faeb979fca80da54c51bfbb2948c)
This commit is contained in:
parent
5de44c1575
commit
b4a822688b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue