From 62c8d16271afe3ede9e13a3c48750c5234ae8f5a Mon Sep 17 00:00:00 2001 From: German Lashevich Date: Mon, 26 Aug 2024 17:13:45 +0200 Subject: [PATCH 1/2] maintainers: add zebradil --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index d5d6718446d1..2b4646411213 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -23027,6 +23027,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"; From c72bd64bb02f17677453fbf4a076235be13c890d Mon Sep 17 00:00:00 2001 From: German Lashevich Date: Mon, 26 Aug 2024 21:10:17 +0200 Subject: [PATCH 2/2] cloudflare-dynamic-dns: init at 4.3.0 --- .../cl/cloudflare-dynamic-dns/package.nix | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/cl/cloudflare-dynamic-dns/package.nix 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 ]; + }; +}