about summary refs log tree commit diff
path: root/pkgs/development/tools/earthly
diff options
context:
space:
mode:
authorKonrad Malik <konrad.malik@gmail.com>2023-05-30 10:32:27 +0200
committerKonrad Malik <konrad.malik@gmail.com>2023-06-02 19:16:27 +0200
commit9dc6e091e96fbf1ab03129b554e6f3da94f300c3 (patch)
treecf6fc4519dc6bd258654ccb9268bc4b3cfbf4f9a /pkgs/development/tools/earthly
parent57364c6aeec7cb0a0538d023ce83a3d1d2c9b2c5 (diff)
downloadnixlib-9dc6e091e96fbf1ab03129b554e6f3da94f300c3.tar
nixlib-9dc6e091e96fbf1ab03129b554e6f3da94f300c3.tar.gz
nixlib-9dc6e091e96fbf1ab03129b554e6f3da94f300c3.tar.bz2
nixlib-9dc6e091e96fbf1ab03129b554e6f3da94f300c3.tar.lz
nixlib-9dc6e091e96fbf1ab03129b554e6f3da94f300c3.tar.xz
nixlib-9dc6e091e96fbf1ab03129b554e6f3da94f300c3.tar.zst
nixlib-9dc6e091e96fbf1ab03129b554e6f3da94f300c3.zip
earthly: 0.6.23 -> 0.7.7
Diffstat (limited to 'pkgs/development/tools/earthly')
-rw-r--r--pkgs/development/tools/earthly/default.nix37
1 files changed, 22 insertions, 15 deletions
diff --git a/pkgs/development/tools/earthly/default.nix b/pkgs/development/tools/earthly/default.nix
index cb76c5387dfc..ab03d6e0eb16 100644
--- a/pkgs/development/tools/earthly/default.nix
+++ b/pkgs/development/tools/earthly/default.nix
@@ -1,35 +1,42 @@
-{ lib, buildGoModule, fetchFromGitHub }:
+{ lib, buildGoModule, fetchFromGitHub, stdenv }:
 
 buildGoModule rec {
   pname = "earthly";
-  version = "0.6.23";
+  version = "0.7.7";
 
   src = fetchFromGitHub {
     owner = "earthly";
     repo = "earthly";
     rev = "v${version}";
-    sha256 = "sha256-RbLAnk2O7wqY0OQLprWuRDUWMicqcLOPia+7aRuXbsk=";
+    sha256 = "sha256-tYoC9OCNAtdQwWyznac5PVl7KLObbFfjs138y5LeQ2A=";
   };
 
-  vendorSha256 = "sha256-MDyQ9Wn5A5F5CQCfEXzkXZi/Fg6sT/Ikv+Y7fvLY8LA=";
+  vendorSha256 = "sha256-1y34WH1JGAs1eDxreHMqUlGTyrixUFIV1DPN/N5wzS4=";
+  subPackages = [ "cmd/earthly" "cmd/debugger" ];
+
+  CGO_ENABLED = 0;
 
   ldflags = [
-    "-s" "-w"
+    "-s"
+    "-w"
     "-X main.Version=v${version}"
-    "-X main.DefaultBuildkitdImage=earthly/buildkitd:v${version}"
+    "-X main.DefaultBuildkitdImage=docker.io/earthly/buildkitd:v${version}"
+    "-X main.GitSha=v${version}"
+    "-X main.DefaultInstallationName=earthly"
+  ] ++ lib.optionals stdenv.isLinux [
+    "-extldflags '-static'"
   ];
 
-  BUILDTAGS = "dfrunmount dfrunsecurity dfsecrets dfssh dfrunnetwork";
-  preBuild = ''
-    makeFlagsArray+=(BUILD_TAGS="${BUILDTAGS}")
-  '';
-
-  # For some reasons the tests fail, but the program itself seems to work.
-  doCheck = false;
+  tags = [
+    "dfrunmount"
+    "dfrunnetwork"
+    "dfrunsecurity"
+    "dfsecrets"
+    "dfssh"
+  ];
 
   postInstall = ''
     mv $out/bin/debugger $out/bin/earthly-debugger
-    mv $out/bin/shellrepeater $out/bin/earthly-shellrepeater
   '';
 
   meta = with lib; {
@@ -37,6 +44,6 @@ buildGoModule rec {
     homepage = "https://earthly.dev/";
     changelog = "https://github.com/earthly/earthly/releases/tag/v${version}";
     license = licenses.mpl20;
-    maintainers = with maintainers; [ zoedsoupe ];
+    maintainers = with maintainers; [ zoedsoupe konradmalik ];
   };
 }