depot/third_party/nixpkgs/pkgs/by-name/cl/cloudflare-dynamic-dns/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

43 lines
1 KiB
Nix

{
lib,
buildGoModule,
cloudflare-dynamic-dns,
fetchFromGitHub,
testers,
}:
buildGoModule rec {
pname = "cloudflare-dynamic-dns";
version = "4.3.3";
src = fetchFromGitHub {
owner = "zebradil";
repo = "cloudflare-dynamic-dns";
rev = "refs/tags/${version}";
hash = "sha256-zmcNr1r0lx5RclZtc5LX6v07IjhFAKaNnIOeDTWhfVQ=";
};
vendorHash = "sha256-L2XtIZE5D1ehoEE45Ig/IMcQS/JgKSxFmMALkNwWDCA=";
subPackages = ".";
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
"-X=main.commit=nixpkg-${version}"
"-X=main.date=1970-01-01"
];
CGO_ENABLED = 0;
passthru.tests.version = testers.testVersion { package = cloudflare-dynamic-dns; };
meta = with lib; {
changelog = "https://github.com/Zebradil/cloudflare-dynamic-dns/blob/${version}/CHANGELOG.md";
description = "Dynamic DNS client for Cloudflare";
homepage = "https://github.com/Zebradil/cloudflare-dynamic-dns";
license = licenses.mit;
mainProgram = "cloudflare-dynamic-dns";
maintainers = [ maintainers.zebradil ];
};
}