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

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

30 lines
751 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
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";
version = "3.23.0";
2020-03-24 10:11:15 +00:00
src = fetchFromGitHub {
owner = "StackExchange";
repo = pname;
rev = "v${version}";
sha256 = "sha256-eIFrVeaNJcYSzMHo5I2g0isdkz/VZmw5mPTSBtdUgzM=";
2020-03-24 10:11:15 +00:00
};
vendorSha256 = "sha256-fVxzPYyMihxcwWEey5b5mhiRkoSPK4ZOqzYg7zSj0zM=";
2021-08-26 06:45:51 +00:00
ldflags = [ "-s" "-w" ];
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
'';
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/";
license = licenses.mit;
maintainers = with maintainers; [ mmahut SuperSandro2000 ];
2020-03-24 10:11:15 +00:00
};
}