depot/third_party/nixpkgs/pkgs/tools/misc/cf-terraforming/default.nix
Default email ed0c4a69f0 Project import generated by Copybara.
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
2023-03-31 00:05:00 +02:00

32 lines
1 KiB
Nix

{ buildGoModule, fetchFromGitHub, lib, cf-terraforming, testers }:
buildGoModule rec {
pname = "cf-terraforming";
version = "0.11.0";
src = fetchFromGitHub {
owner = "cloudflare";
repo = "cf-terraforming";
rev = "v${version}";
sha256 = "sha256-kdY/3D/GiAlOfj3pT9DECOsD9wqb7GZN7yzZrhec8hI=";
};
vendorHash = "sha256-HLKk64PcJUjKfY4pIwI2OXnjqFF1EkYlWOi0aWOVSbk=";
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 ];
};
}