2022-09-22 12:36:57 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, cf-terraforming, testers }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "cf-terraforming";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "0.8.7";
|
2022-09-22 12:36:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cloudflare";
|
|
|
|
repo = "cf-terraforming";
|
|
|
|
rev = "v${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-sayhtJxpO03lXEYBf5zNCH0o6DYW2L+hgvCfxgHk2z0=";
|
2022-09-22 12:36:57 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
vendorSha256 = "sha256-g8Om1LZEDSpe4L94AjHAuawx9jtWm//rO27jXhvhrQY=";
|
2022-09-22 12:36:57 +00:00
|
|
|
ldflags = [ "-X github.com/cloudflare/cf-terraforming/internal/app/cf-terraforming/cmd.versionString=${version}" ];
|
|
|
|
|
|
|
|
# The test suite insists on downloading a binary release of Terraform from
|
|
|
|
# Hashicorp at runtime, which isn't going to work in a nix build
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.tests = testers.testVersion {
|
|
|
|
package = cf-terraforming;
|
|
|
|
command = "cf-terraforming version";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A command line utility to facilitate terraforming your existing Cloudflare resources";
|
|
|
|
homepage = "https://github.com/cloudflare/cf-terraforming/";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ benley ];
|
|
|
|
};
|
|
|
|
}
|