mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
34 lines
1.1 KiB
Nix
34 lines
1.1 KiB
Nix
{ buildGoModule, fetchFromGitHub, lib, cf-terraforming, testers }:
|
|
|
|
buildGoModule rec {
|
|
pname = "cf-terraforming";
|
|
version = "0.18.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloudflare";
|
|
repo = "cf-terraforming";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-U6xYJWVf1O/DLtC6J3b+DL97QYUW6ObRh/9EKXhi/j4=";
|
|
};
|
|
|
|
vendorHash = "sha256-r5qlnY3gIigjbFUj9ZVY9WTQM4aYNlTv3HHpc2r/+Rw=";
|
|
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";
|
|
};
|
|
}
|