1 { lib, stdenv, buildGoModule, fetchFromGitHub, fetchpatch }:
5 version = "unstable-2019-10-15";
7 src = fetchFromGitHub {
8 owner = "skynetservices";
10 rev = "94b2ea0d8bfa43395656ea94d4a6235bdda47129";
11 hash = "sha256-OWLJmGx21UoWwrm6YNbPYdj3OgEZz7C+xccnkMOZ71g=";
14 vendorHash = "sha256-J3+DACU9JuazGCZZrfKxHukG5M+nb+WbV3eTG8EaT/w=";
17 # Add Go Modules support
19 url = "https://github.com/skynetservices/skydns/commit/37be34cd64a3037a6d5a3b3dbb673f391e9d7eb1.patch";
20 hash = "sha256-JziYREg3vw8NMIPd8Zv8An7XUj+U6dvgRcaZph0DLPg=";
24 subPackages = [ "." ];
26 ldflags = [ "-s" "-w" ];
29 description = "Distributed service for announcement and discovery of services";
30 homepage = "https://github.com/skynetservices/skydns";
31 license = lib.licenses.mit;
33 mainProgram = "skydns";
34 # link: golang.org/x/net/internal/socket: invalid reference to syscall.recvmsg
35 broken = stdenv.hostPlatform.isDarwin;