Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
953 B
Nix
41 lines
953 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "atlantis";
|
|
version = "0.36.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "runatlantis";
|
|
repo = "atlantis";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-STw7qQHLyST5eyr3siBY1adO2vyUEH1xlwatj3Oyp0U=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-X=main.version=${finalAttrs.version}"
|
|
"-X=main.date=1970-01-01T00:00:00Z"
|
|
];
|
|
|
|
vendorHash = "sha256-GeO+T8PUrN1zX0S6roeles5sB68KwStiuQ65k+tNf68=";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgram = "${placeholder "out"}/bin/atlantis";
|
|
versionCheckProgramArg = "version";
|
|
|
|
meta = {
|
|
homepage = "https://github.com/runatlantis/atlantis";
|
|
description = "Terraform Pull Request Automation";
|
|
mainProgram = "atlantis";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ jpotier ];
|
|
};
|
|
})
|