mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 21:33:07 +00:00
40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "earthly";
|
|
version = "0.5.22";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "earthly";
|
|
repo = "earthly";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-mwyL0o+f7hPvVhWBE7k5a56kzDpeM4rw8h5oLkgsqgc=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-pITTp9BqGfUFSF15pl5AM0npJuylJ+FcGw4xGaOi0/o=";
|
|
|
|
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}";
|
|
license = licenses.bsl11;
|
|
maintainers = with maintainers; [ matdsoupe ];
|
|
};
|
|
}
|