2023-04-18 17:50:42 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-03-24 12:46:57 +00:00
|
|
|
|
2020-09-07 19:20:00 +00:00
|
|
|
buildGoModule rec {
|
2020-03-24 10:11:15 +00:00
|
|
|
pname = "dnscontrol";
|
2023-08-22 19:54:38 +00:00
|
|
|
version = "4.2.0";
|
2020-03-24 10:11:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "StackExchange";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-08-22 19:54:38 +00:00
|
|
|
sha256 = "sha256-woiFCirM2psmwcKGgQngOJuYZDI2t81xkSzVi4svtXs=";
|
2020-03-24 10:11:15 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 19:54:38 +00:00
|
|
|
vendorHash = "sha256-3xT5WPBcEclXad8zBA+T7/M6fDmfMWljV8NuxvtvTsA=";
|
2020-09-16 20:27:22 +00:00
|
|
|
|
2023-04-18 17:50:42 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
|
2021-02-14 07:56:15 +00:00
|
|
|
|
2022-06-20 15:06:40 +00:00
|
|
|
preCheck = ''
|
|
|
|
# requires network
|
|
|
|
rm pkg/spflib/flatten_test.go pkg/spflib/parse_test.go
|
|
|
|
'';
|
|
|
|
|
2020-09-16 20:27:22 +00:00
|
|
|
meta = with lib; {
|
2020-03-24 10:11:15 +00:00
|
|
|
description = "Synchronize your DNS to multiple providers from a simple DSL";
|
|
|
|
homepage = "https://stackexchange.github.io/dnscontrol/";
|
2023-04-18 17:50:42 +00:00
|
|
|
changelog = "https://github.com/StackExchange/dnscontrol/releases/tag/${src.rev}";
|
2020-03-24 10:11:15 +00:00
|
|
|
license = licenses.mit;
|
2020-09-16 20:27:38 +00:00
|
|
|
maintainers = with maintainers; [ mmahut SuperSandro2000 ];
|
2020-03-24 10:11:15 +00:00
|
|
|
};
|
|
|
|
}
|