mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "atmos";
|
|
version = "1.70.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloudposse";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-NmgInrjCcMoSjSCotGU38URP7FNMaFs3N2g49Y/fXSw=";
|
|
};
|
|
|
|
vendorHash = "sha256-dJJPq2HcGZ+MqtJ848gsrvzD1rMVrwJQKwq+UpZsFB0=";
|
|
|
|
ldflags = [ "-s" "-w" "-X github.com/cloudposse/atmos/cmd.Version=v${version}" ];
|
|
|
|
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
|
|
'';
|
|
|
|
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";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ] ++ teams.cloudposse.members;
|
|
};
|
|
}
|