60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
31 lines
790 B
Nix
31 lines
790 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "flarectl";
|
|
version = "0.87.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloudflare";
|
|
repo = "cloudflare-go";
|
|
rev = "v${version}";
|
|
hash = "sha256-M3Qc9PAcYASOQyEjWdGrLKx9h6uQGPftMJnD0Uc2buc=";
|
|
};
|
|
|
|
vendorHash = "sha256-Bn2SDvFWmmMYDpOe+KBuzyTZLpdDtYDPc8HixgEgX+M=";
|
|
|
|
subPackages = [ "cmd/flarectl" ];
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
meta = with lib; {
|
|
description = "CLI application for interacting with a Cloudflare account";
|
|
homepage = "https://github.com/cloudflare/cloudflare-go";
|
|
changelog = "https://github.com/cloudflare/cloudflare-go/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ jmbaur ];
|
|
mainProgram = "flarectl";
|
|
};
|
|
}
|