Files
nixpkgs/pkgs/by-name/at/atmos/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1.4 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
terraform,
}:
buildGoModule (finalAttrs: {
pname = "atmos";
version = "1.189.0";
src = fetchFromGitHub {
owner = "cloudposse";
repo = "atmos";
tag = "v${finalAttrs.version}";
hash = "sha256-udreQcDKZYnOLxeEUQfC+OsLg1VdwXP9R7hDKD6YEkw=";
};
vendorHash = "sha256-RnmYUEgVQyZXvPPIXxS8cCkpKkQTGxQzawfDN4zVLHw=";
ldflags = [
"-s"
"-w"
"-X github.com/cloudposse/atmos/cmd.Version=v${finalAttrs.version}"
];
nativeCheckInputs = [ terraform ];
preCheck = ''
# Remove tests that depend on a network connection.
rm -f \
pkg/vender/component_vendor_test.go \
pkg/atlantis/atlantis_generate_repo_config_test.go \
pkg/describe/describe_affected_test.go
'';
# depend on a network connection.
doCheck = false;
# depend on a network connection.
doInstallCheck = false;
installCheckPhase = ''
runHook preInstallCheck
$out/bin/atmos version | grep "v${finalAttrs.version}"
runHook postInstallCheck
'';
meta = {
homepage = "https://atmos.tools";
changelog = "https://github.com/cloudposse/atmos/releases/tag/v${finalAttrs.version}";
description = "Universal Tool for DevOps and Cloud Automation (works with terraform, helm, helmfile, etc)";
mainProgram = "atmos";
license = lib.licenses.asl20;
teams = [ lib.teams.cloudposse ];
};
})