nixpkgs/pkgs/tools/networking/godns/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
946 B
Nix
Raw Normal View History

2023-03-03 12:08:06 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
, nix-update-script
}:
2021-10-07 04:05:05 +01:00
buildGoModule rec {
pname = "godns";
2023-10-01 07:26:50 +01:00
version = "3.0.1";
2021-10-07 04:05:05 +01:00
src = fetchFromGitHub {
owner = "TimothyYe";
repo = "godns";
2023-03-03 12:08:06 +00:00
rev = "refs/tags/v${version}";
2023-10-01 07:26:50 +01:00
hash = "sha256-MmjPcJxz8wAgBwPg8UaYVniypDeY05yDxehkTL8zjro=";
2021-10-07 04:05:05 +01:00
};
2023-04-26 21:43:41 +01:00
vendorHash = "sha256-iAU62/0MjzxwuMvIobhIZEqDJUpRqwEabnazH7jBRTE=";
2021-10-07 04:05:05 +01:00
# Some tests require internet access, broken in sandbox
doCheck = false;
2023-03-03 12:08:06 +00:00
ldflags = [
"-s"
"-w"
"-X main.Version=${version}"
];
2021-10-07 04:05:05 +01:00
passthru.updateScript = nix-update-script { };
2022-05-11 05:24:27 +01:00
2021-10-07 04:05:05 +01:00
meta = with lib; {
description = "A dynamic DNS client tool supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS & DreamHost, etc";
homepage = "https://github.com/TimothyYe/godns";
2023-03-03 12:06:34 +00:00
changelog = "https://github.com/TimothyYe/godns/releases/tag/v${version}";
2021-10-07 04:05:05 +01:00
license = licenses.asl20;
maintainers = with maintainers; [ yinfeng ];
};
}