nixpkgs/pkgs/development/tools/earthly/default.nix

40 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "earthly";
2021-08-13 09:22:18 +01:00
version = "0.5.22";
src = fetchFromGitHub {
owner = "earthly";
repo = "earthly";
rev = "v${version}";
2021-08-13 09:22:18 +01:00
sha256 = "sha256-mwyL0o+f7hPvVhWBE7k5a56kzDpeM4rw8h5oLkgsqgc=";
};
2021-08-13 09:22:18 +01:00
vendorSha256 = "sha256-pITTp9BqGfUFSF15pl5AM0npJuylJ+FcGw4xGaOi0/o=";
2021-08-26 07:45:51 +01:00
ldflags = [
"-s" "-w"
"-X main.Version=v${version}"
"-X main.DefaultBuildkitdImage=earthly/buildkitd:v${version}"
];
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
'';
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;
maintainers = with maintainers; [ matdsoupe ];
};
}