2022-09-07 16:16:09 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "atmos";
|
2024-04-20 21:40:32 +02:00
|
|
|
version = "1.70.0";
|
2022-09-07 16:16:09 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cloudposse";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-20 21:40:32 +02:00
|
|
|
sha256 = "sha256-NmgInrjCcMoSjSCotGU38URP7FNMaFs3N2g49Y/fXSw=";
|
2022-09-07 16:16:09 +02:00
|
|
|
};
|
|
|
|
|
2024-04-09 02:21:44 +02:00
|
|
|
vendorHash = "sha256-dJJPq2HcGZ+MqtJ848gsrvzD1rMVrwJQKwq+UpZsFB0=";
|
2022-09-07 16:16:09 +02:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X github.com/cloudposse/atmos/cmd.Version=v${version}" ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# Remove tests that depend on a network connection.
|
2024-01-11 00:05:21 +01:00
|
|
|
rm -f \
|
|
|
|
pkg/vender/component_vendor_test.go \
|
|
|
|
pkg/atlantis/atlantis_generate_repo_config_test.go \
|
|
|
|
pkg/describe/describe_affected_test.go
|
2022-09-07 16:16:09 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
runHook preInstallCheck
|
|
|
|
$out/bin/atmos version | grep "v${version}"
|
|
|
|
runHook postInstallCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://atmos.tools";
|
|
|
|
changelog = "https://github.com/cloudposse/atmos/releases/tag/v${version}";
|
|
|
|
description = "Universal Tool for DevOps and Cloud Automation (works with terraform, helm, helmfile, etc)";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "atmos";
|
2022-09-07 16:16:09 +02:00
|
|
|
license = licenses.asl20;
|
2024-02-12 16:48:08 +01:00
|
|
|
maintainers = with maintainers; [ ] ++ teams.cloudposse.members;
|
2022-09-07 16:16:09 +02:00
|
|
|
};
|
|
|
|
}
|