@@ -0,0 +1,31 @@
1+{ lib, goPackages, fetchFromGitHub }:
2+
3+with goPackages;
4+
5+buildGoPackage rec {
6+ name = "mesos-dns-${version}";
7+ version = "0.1";
8+
9+ goPackagePath = "github.com/mesosphere/mesos-dns";
10+
11+ src = fetchFromGitHub {
12+ owner = "mesosphere";
13+ repo = "mesos-dns";
14+ rev = "29940029d4b0c17142373c3280a8b452722b665b";
15+ sha256 = "1fycywhdyymibsahjqx9vnigk3pdis3hnmfbxp74pmd9xqqlyv1n";
16+ };
17+
18+ # Avoid including the benchmarking test helper in the output:
19+ subPackages = [ "." ];
20+
21+ buildInputs = with goPackages; [ go dns ];
22+ dontInstallSrc = true;
23+
24+ meta = with lib; {
25+ description = "DNS-based service discovery for Mesos clusters";
26+ homepage = https://github.com/mesosphere/mesos-dns;
27+ license = licenses.apsl20;
28+ maintainers = with maintainers; [ benley ];
29+ platforms = platforms.unix;
30+ };
31+}