e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
31 lines
790 B
Nix
31 lines
790 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "flarectl";
|
|
version = "0.85.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloudflare";
|
|
repo = "cloudflare-go";
|
|
rev = "v${version}";
|
|
hash = "sha256-mXbWiHU28MlcYbS+RLHToJZpVMWsQ7qY6dAyY+ulwjw=";
|
|
};
|
|
|
|
vendorHash = "sha256-v6xhhufqxfFvY3BpcM6Qvpljf/vE8ZwPG47zhx+ilb0=";
|
|
|
|
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";
|
|
};
|
|
}
|