depot/third_party/nixpkgs/pkgs/tools/misc/cf-terraforming/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

33 lines
1.1 KiB
Nix

{ buildGoModule, fetchFromGitHub, lib, cf-terraforming, testers }:
buildGoModule rec {
pname = "cf-terraforming";
version = "0.17.0";
src = fetchFromGitHub {
owner = "cloudflare";
repo = "cf-terraforming";
rev = "v${version}";
sha256 = "sha256-XFL9BfTpZaIsNeJLT3wEPFBvyO/VxvFjpApjjxvaGKw=";
};
vendorHash = "sha256-j4J6VAXT+CdU4WkISBunJn6B25CDdaarhFnnLaC4cBE=";
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 ];
mainProgram = "cf-terraforming";
};
}