earthly: add missing buildFlags and tags
This commit is contained in:
parent
6a9a6b95c8
commit
a5bf3427fb
|
@ -13,6 +13,19 @@ buildGoModule rec {
|
||||||
|
|
||||||
vendorSha256 = "sha256-q3dDV0eop2NxXHFrlppWsZrO2Hz1q5xhs1DnB6PvG9g=";
|
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 = ''
|
postInstall = ''
|
||||||
mv $out/bin/debugger $out/bin/earthly-debugger
|
mv $out/bin/debugger $out/bin/earthly-debugger
|
||||||
mv $out/bin/shellrepeater $out/bin/earthly-shellrepeater
|
mv $out/bin/shellrepeater $out/bin/earthly-shellrepeater
|
||||||
|
|
Loading…
Reference in a new issue