diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 60f44eed80ef..141f114898ca 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -23162,6 +23162,12 @@ github = "zbioe"; githubId = 7332055; }; + zebradil = { + email = "german.lashevich+nixpkgs@gmail.com"; + github = "zebradil"; + githubId = 1475583; + name = "German Lashevich"; + }; zebreus = { matrix = "@lennart:cicen.net"; email = "lennarteichhorn+nixpkgs@gmail.com"; diff --git a/pkgs/by-name/cl/cloudflare-dynamic-dns/package.nix b/pkgs/by-name/cl/cloudflare-dynamic-dns/package.nix new file mode 100644 index 000000000000..c5723c54ea39 --- /dev/null +++ b/pkgs/by-name/cl/cloudflare-dynamic-dns/package.nix @@ -0,0 +1,43 @@ +{ + lib, + buildGoModule, + cloudflare-dynamic-dns, + fetchFromGitHub, + testers, +}: +buildGoModule rec { + pname = "cloudflare-dynamic-dns"; + version = "4.3.0"; + + src = fetchFromGitHub { + owner = "zebradil"; + repo = "cloudflare-dynamic-dns"; + rev = "refs/tags/${version}"; + hash = "sha256-3sE4iaSkCAAMJ6FtZgXXkjb0aO73ehluY3WMQlOgxwc="; + }; + + vendorHash = "sha256-/UaTOCbE8ieCtME6AudbXE5ntCptPFoESYrdn7qK0MU="; + + 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 ]; + }; +}