mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "atmos";
|
|
version = "1.95.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloudposse";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-shhkaPYU1N3Q7eu8CyZXYrR11kxb+r9II4lpfRWTOas=";
|
|
};
|
|
|
|
vendorHash = "sha256-4pUx8qzptzuGeIrT7m67iidMSUNbDSGV8p+KkHqX3lo=";
|
|
|
|
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;
|
|
};
|
|
}
|