depot/third_party/nixpkgs/pkgs/by-name/fl/flarectl/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

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";
};
}