2020-09-25 04:45:31 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
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";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "3.22.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "StackExchange";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-Lv4ZX8QXRkicPH69kvUAPcgesGvhQkNiwZiNcFbReSU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
vendorSha256 = "sha256-gKsYy3izx8i7nOazBF4w1SPUJT9D2hbjOr6LqonVqno=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
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
|
|
|
|
'';
|
|
|
|
|
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";
|
|
|
|
homepage = "https://stackexchange.github.io/dnscontrol/";
|
|
|
|
license = licenses.mit;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ mmahut SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|