159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
31 lines
791 B
Nix
31 lines
791 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "flarectl";
|
|
version = "0.104.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloudflare";
|
|
repo = "cloudflare-go";
|
|
rev = "v${version}";
|
|
hash = "sha256-XHvWdSqkVEM/0FWkvSZDLEh8W2h8f+12ROrZSgmZS1k=";
|
|
};
|
|
|
|
vendorHash = "sha256-KMCwbbDpj4QAgvKLlOPDKSlrDyf+K/tGTMM/GBlvyuc=";
|
|
|
|
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";
|
|
};
|
|
}
|