depot/third_party/nixpkgs/pkgs/by-name/fl/flarectl/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

31 lines
790 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "flarectl";
version = "0.97.0";
src = fetchFromGitHub {
owner = "cloudflare";
repo = "cloudflare-go";
rev = "v${version}";
hash = "sha256-FeUZYOa35WOxSagCwN0Cq4cbvrEgRr1xjfHGqGvZSxY=";
};
vendorHash = "sha256-Ae3KC7D5PrIGd29pGPVTu56DIlJS0CLViLnK6FY7KU0=";
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";
};
}