1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/pkgs/by-name/fl/flarectl/package.nix
2024-02-28 01:46:54 +00:00

32 lines
790 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "flarectl";
version = "0.89.0";
src = fetchFromGitHub {
owner = "cloudflare";
repo = "cloudflare-go";
rev = "v${version}";
hash = "sha256-BXG9pKkgSSlBNiWiDOWL6D/DSC2iVzVCktL4xyi6/Ao=";
};
vendorHash = "sha256-AxBvmDB3mfgkv7U+BzR0Khdgx1hrDI61CSxr45pRZqg=";
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";
};
}