mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
30 lines
716 B
Nix
30 lines
716 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "atlantis";
|
|
version = "0.22.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "runatlantis";
|
|
repo = "atlantis";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-A/FT9t5Z+Iw1mVwS3d5Cc86A9e6jVbEtmEWroVUhhtw=";
|
|
};
|
|
|
|
vendorHash = "sha256-KUkh5yx+v5g0N4yIpgpt3i+uCtOtR0Jvf2PFQcGWtm8=";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
$out/bin/atlantis version | grep ${version} > /dev/null
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/runatlantis/atlantis";
|
|
description = "Terraform Pull Request Automation";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ jpotier ];
|
|
};
|
|
}
|