1 { lib, buildGoModule, fetchFromGitHub, stdenv, testers, earthly }:
7 src = fetchFromGitHub {
11 hash = "sha256-nvjoHU+LuyZy8NxMRWYMCQlvq5E6va2x16JRDdFI+70=";
14 vendorHash = "sha256-66xN4uUeEFHpI/pAP7akG4YQhbY7ylu8AVOJnx60c7s=";
15 subPackages = [ "cmd/earthly" "cmd/debugger" ];
22 "-X main.Version=v${version}"
23 "-X main.DefaultBuildkitdImage=docker.io/earthly/buildkitd:v${version}"
24 "-X main.GitSha=v${version}"
25 "-X main.DefaultInstallationName=earthly"
26 ] ++ lib.optionals stdenv.isLinux [
27 "-extldflags '-static'"
39 mv $out/bin/debugger $out/bin/earthly-debugger
43 tests.version = testers.testVersion {
45 version = "v${version}";
50 description = "Build automation for the container era";
51 homepage = "https://earthly.dev/";
52 changelog = "https://github.com/earthly/earthly/releases/tag/v${version}";
53 license = licenses.mpl20;
54 maintainers = with maintainers; [ zoedsoupe konradmalik ];