9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub, stdenv }:
|
|
|
|
buildGoModule rec {
|
|
pname = "earthly";
|
|
version = "0.7.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "earthly";
|
|
repo = "earthly";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-iIMTDdWO//H8BXEbYMx15vo48IQ15AJjNvMg8Y2oFUY=";
|
|
};
|
|
|
|
vendorHash = "sha256-tEhUywjJtNaWLPSRNeHTcNsPNCZtXzqjg0VG4g4N9E0=";
|
|
subPackages = [ "cmd/earthly" "cmd/debugger" ];
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.Version=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'"
|
|
];
|
|
|
|
tags = [
|
|
"dfrunmount"
|
|
"dfrunnetwork"
|
|
"dfrunsecurity"
|
|
"dfsecrets"
|
|
"dfssh"
|
|
];
|
|
|
|
postInstall = ''
|
|
mv $out/bin/debugger $out/bin/earthly-debugger
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Build automation for the container era";
|
|
homepage = "https://earthly.dev/";
|
|
changelog = "https://github.com/earthly/earthly/releases/tag/v${version}";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ zoedsoupe konradmalik ];
|
|
};
|
|
}
|