depot/third_party/nixpkgs/pkgs/by-name/fl/flarectl/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

31 lines
790 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "flarectl";
version = "0.96.0";
src = fetchFromGitHub {
owner = "cloudflare";
repo = "cloudflare-go";
rev = "v${version}";
hash = "sha256-iqR+9qgHYCk7DGX64f50ANUYxTn0h4+AoBHE6yGAvtU=";
};
vendorHash = "sha256-SkJTLOJ6518MQ0pAPM3TR8T5dOSwEbyQNZHr1jq936A=";
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";
};
}