python312Packages.types-aiobotocore: 2.15.2 -> 2.15.2.post3 (#361801)
[NixPkgs.git] / pkgs / by-name / at / atmos / package.nix
blob54d7c4fd6824e71c97a4ff7a438ea95f9e152f91
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "atmos";
5   version = "1.95.0";
7   src = fetchFromGitHub {
8     owner = "cloudposse";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-shhkaPYU1N3Q7eu8CyZXYrR11kxb+r9II4lpfRWTOas=";
12   };
14   vendorHash = "sha256-4pUx8qzptzuGeIrT7m67iidMSUNbDSGV8p+KkHqX3lo=";
16   ldflags = [ "-s" "-w" "-X github.com/cloudposse/atmos/cmd.Version=v${version}" ];
18   preCheck = ''
19     # Remove tests that depend on a network connection.
20     rm -f \
21       pkg/vender/component_vendor_test.go \
22       pkg/atlantis/atlantis_generate_repo_config_test.go \
23       pkg/describe/describe_affected_test.go
24   '';
26   doCheck = true;
28   doInstallCheck = true;
29   installCheckPhase = ''
30     runHook preInstallCheck
31     $out/bin/atmos version | grep "v${version}"
32     runHook postInstallCheck
33   '';
35   meta = with lib; {
36     homepage = "https://atmos.tools";
37     changelog = "https://github.com/cloudposse/atmos/releases/tag/v${version}";
38     description = "Universal Tool for DevOps and Cloud Automation (works with terraform, helm, helmfile, etc)";
39     mainProgram = "atmos";
40     license = licenses.asl20;
41     maintainers = with maintainers; [ ] ++ teams.cloudposse.members;
42   };