about summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2021-06-03 19:31:57 +0300
committerArtturin <Artturin@artturin.com>2021-06-04 18:23:43 +0300
commita5bf3427fbd1faeb979fca80da54c51bfbb2948c (patch)
treeb84dacef1918ee7367ef84e0b7df6880db398cb9 /pkgs/development/tools
parent6a9a6b95c80c52b82dfe3c6b7e0d9afbecd072a2 (diff)
earthly: add missing buildFlags and tags
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/earthly/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/development/tools/earthly/default.nix b/pkgs/development/tools/earthly/default.nix
index 588716b9f30c6..f73de077acbb4 100644
--- a/pkgs/development/tools/earthly/default.nix
+++ b/pkgs/development/tools/earthly/default.nix
@@ -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