2020-03-24 10:11:15 +00:00
|
|
|
{ stdenv, fetchFromGitHub, buildGoPackage}:
|
2020-03-24 12:46:57 +00:00
|
|
|
|
2020-03-24 10:11:15 +00:00
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "dnscontrol";
|
|
|
|
version = "3.0.0";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/StackExchange/dnscontrol";
|
|
|
|
|
2020-03-24 12:46:57 +00:00
|
|
|
goDeps = ./deps.nix;
|
2020-03-24 10:11:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "StackExchange";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1j8i4k7bqkqmi6dmc9fxfab49a7qigig72rlbga902lw336p6cc7";
|
|
|
|
};
|
|
|
|
|
2020-03-24 12:46:57 +00:00
|
|
|
postInstall = ''
|
|
|
|
rm $bin/bin/{build,convertzone,generate,validate}
|
|
|
|
'';
|
|
|
|
|
2020-03-24 10:11:15 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Synchronize your DNS to multiple providers from a simple DSL";
|
|
|
|
homepage = "https://stackexchange.github.io/dnscontrol/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mmahut ];
|
|
|
|
};
|
|
|
|
}
|