nixpkgs/pkgs/applications/networking/dnscontrol/default.nix

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

41 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, testers, dnscontrol }:
2020-03-24 15:46:57 +03:00
2020-09-07 22:20:00 +03:00
buildGoModule rec {
2020-03-24 13:11:15 +03:00
pname = "dnscontrol";
2024-05-07 03:37:26 +03:00
version = "4.10.0";
2020-03-24 13:11:15 +03:00
src = fetchFromGitHub {
owner = "StackExchange";
repo = "dnscontrol";
2020-03-24 13:11:15 +03:00
rev = "v${version}";
2024-05-07 03:37:26 +03:00
hash = "sha256-7Gmb28/k72wfd2bWDCk7onUBAzNs6b5q52lCn0WB3B8=";
2020-03-24 13:11:15 +03:00
};
2024-05-07 03:37:26 +03:00
vendorHash = "sha256-uYClwaFSj03K4YD/jvn67sIko72jDqd5Fv2zoCXZZbw=";
subPackages = [ "." ];
ldflags = [ "-s" "-w" "-X=main.version=${version}" ];
2021-02-14 10:56:15 +03:00
2022-06-20 18:06:40 +03:00
preCheck = ''
# requires network
rm pkg/spflib/flatten_test.go pkg/spflib/parse_test.go
'';
passthru.tests = {
version = testers.testVersion {
command = "${lib.getExe dnscontrol} version";
package = dnscontrol;
};
};
meta = with lib; {
2020-03-24 13:11:15 +03:00
description = "Synchronize your DNS to multiple providers from a simple DSL";
2023-09-08 07:20:00 +03:00
homepage = "https://dnscontrol.org/";
changelog = "https://github.com/StackExchange/dnscontrol/releases/tag/${src.rev}";
2020-03-24 13:11:15 +03:00
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
2023-09-08 07:20:00 +03:00
mainProgram = "dnscontrol";
2020-03-24 13:11:15 +03:00
};
}