2021-05-02 17:30:24 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "earthly";
|
2021-08-13 09:22:18 +01:00
|
|
|
version = "0.5.22";
|
2021-05-02 17:30:24 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "earthly";
|
|
|
|
repo = "earthly";
|
|
|
|
rev = "v${version}";
|
2021-08-13 09:22:18 +01:00
|
|
|
sha256 = "sha256-mwyL0o+f7hPvVhWBE7k5a56kzDpeM4rw8h5oLkgsqgc=";
|
2021-05-02 17:30:24 +01:00
|
|
|
};
|
|
|
|
|
2021-08-13 09:22:18 +01:00
|
|
|
vendorSha256 = "sha256-pITTp9BqGfUFSF15pl5AM0npJuylJ+FcGw4xGaOi0/o=";
|
2021-05-02 17:30:24 +01:00
|
|
|
|
2021-08-26 07:45:51 +01:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w"
|
|
|
|
"-X main.Version=v${version}"
|
|
|
|
"-X main.DefaultBuildkitdImage=earthly/buildkitd:v${version}"
|
|
|
|
];
|
2021-06-03 17:31:57 +01:00
|
|
|
|
|
|
|
BUILDTAGS = "dfrunmount dfrunsecurity dfsecrets dfssh dfrunnetwork";
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray+=(BUILD_TAGS="${BUILDTAGS}")
|
|
|
|
'';
|
|
|
|
|
2021-05-02 17:30:24 +01:00
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/debugger $out/bin/earthly-debugger
|
|
|
|
mv $out/bin/shellrepeater $out/bin/earthly-shellrepeater
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Build automation for the container era";
|
|
|
|
homepage = "https://earthly.dev/";
|
|
|
|
changelog = "https://github.com/earthly/earthly/releases/tag/v${version}";
|
2021-08-20 13:44:34 +01:00
|
|
|
license = licenses.bsl11;
|
2021-08-19 22:17:48 +01:00
|
|
|
maintainers = with maintainers; [ matdsoupe ];
|
2021-05-02 17:30:24 +01:00
|
|
|
};
|
|
|
|
}
|