nixpkgs/pkgs/by-name/at/atmos/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.2 KiB
Nix
Raw Normal View History

2022-09-07 14:16:09 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "atmos";
2024-10-27 04:59:37 +00:00
version = "1.95.0";
2022-09-07 14:16:09 +00:00
src = fetchFromGitHub {
owner = "cloudposse";
repo = pname;
rev = "v${version}";
2024-10-27 04:59:37 +00:00
sha256 = "sha256-shhkaPYU1N3Q7eu8CyZXYrR11kxb+r9II4lpfRWTOas=";
2022-09-07 14:16:09 +00:00
};
2024-10-27 04:59:37 +00:00
vendorHash = "sha256-4pUx8qzptzuGeIrT7m67iidMSUNbDSGV8p+KkHqX3lo=";
2022-09-07 14:16:09 +00:00
ldflags = [ "-s" "-w" "-X github.com/cloudposse/atmos/cmd.Version=v${version}" ];
preCheck = ''
# Remove tests that depend on a network connection.
2024-01-10 23:05:21 +00: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 14:16:09 +00: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)";
mainProgram = "atmos";
2022-09-07 14:16:09 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ ] ++ teams.cloudposse.members;
2022-09-07 14:16:09 +00:00
};
}