1 { lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, dnscontrol }:
7 src = fetchFromGitHub {
8 owner = "StackExchange";
11 hash = "sha256-FDxNJ6pOigasulxtAAnvHfWHQ3Ji459IQScA4dld9KQ=";
14 vendorHash = "sha256-aqS5esDroGg83NJygX8tW8P0U4YCkll98KmAfya6lKM=";
16 nativeBuildInputs = [ installShellFiles ];
18 subPackages = [ "." ];
20 ldflags = [ "-s" "-w" "-X=main.version=${version}" ];
23 installShellCompletion --cmd dnscontrol \
24 --bash <($out/bin/dnscontrol shell-completion bash) \
25 --zsh <($out/bin/dnscontrol shell-completion zsh)
30 rm pkg/spflib/flatten_test.go pkg/spflib/parse_test.go
34 version = testers.testVersion {
35 command = "${lib.getExe dnscontrol} version";
41 description = "Synchronize your DNS to multiple providers from a simple DSL";
42 homepage = "https://dnscontrol.org/";
43 changelog = "https://github.com/StackExchange/dnscontrol/releases/tag/${src.rev}";
44 license = licenses.mit;
45 maintainers = with maintainers; [ SuperSandro2000 ];
46 mainProgram = "dnscontrol";