2024-04-21 15:54:59 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, dnscontrol }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "dnscontrol";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "4.9.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "StackExchange";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "dnscontrol";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-E5/7qAK2pvl1ADioF7Iwe9SgCE6tVaQdtOAwNo3XZx8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-5VTC6Y3Bs2ViW5/O8TeD0i6Boeu71b9C+B/3O73bCbk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X=main.version=${version}" ];
|
2021-02-17 17:02:09 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
preCheck = ''
|
|
|
|
# requires network
|
|
|
|
rm pkg/spflib/flatten_test.go pkg/spflib/parse_test.go
|
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
passthru.tests = {
|
|
|
|
version = testers.testVersion {
|
|
|
|
command = "${lib.getExe dnscontrol} version";
|
|
|
|
package = dnscontrol;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Synchronize your DNS to multiple providers from a simple DSL";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://dnscontrol.org/";
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://github.com/StackExchange/dnscontrol/releases/tag/${src.rev}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "dnscontrol";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|