about summary refs log tree commit diff
path: root/pkgs/applications/networking/dnscontrol/default.nix
blob: 3f0a83d015da220a868f833298591d60cda63213 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchFromGitHub, buildGoPackage}:

buildGoPackage rec {
  pname = "dnscontrol";
  version = "3.0.0";

  goPackagePath = "github.com/StackExchange/dnscontrol";

  goDeps = ./deps.nix;

  src = fetchFromGitHub {
    owner = "StackExchange";
    repo = pname;
    rev = "v${version}";
    sha256 = "1j8i4k7bqkqmi6dmc9fxfab49a7qigig72rlbga902lw336p6cc7";
  };

  postInstall = ''
    rm $bin/bin/{build,convertzone,generate,validate}
  '';

  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 ];
  };
}