nixpkgs/pkgs/by-name/sk/skydns/package.nix

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

38 lines
1.1 KiB
Nix
Raw Normal View History

2024-11-02 13:01:50 +00:00
{ lib, stdenv, buildGoModule, fetchFromGitHub, fetchpatch }:
2016-06-03 17:17:43 +01:00
2023-01-25 14:35:42 +00:00
buildGoModule rec {
pname = "skydns";
2023-01-25 14:35:42 +00:00
version = "unstable-2019-10-15";
2016-06-03 17:17:43 +01:00
src = fetchFromGitHub {
owner = "skynetservices";
repo = "skydns";
2023-01-25 14:35:42 +00:00
rev = "94b2ea0d8bfa43395656ea94d4a6235bdda47129";
hash = "sha256-OWLJmGx21UoWwrm6YNbPYdj3OgEZz7C+xccnkMOZ71g=";
2016-06-03 17:17:43 +01:00
};
2023-01-25 14:35:42 +00:00
vendorHash = "sha256-J3+DACU9JuazGCZZrfKxHukG5M+nb+WbV3eTG8EaT/w=";
patches = [
# Add Go Modules support
(fetchpatch {
url = "https://github.com/skynetservices/skydns/commit/37be34cd64a3037a6d5a3b3dbb673f391e9d7eb1.patch";
hash = "sha256-JziYREg3vw8NMIPd8Zv8An7XUj+U6dvgRcaZph0DLPg=";
})
];
subPackages = [ "." ];
ldflags = [ "-s" "-w" ];
2018-08-04 17:34:51 +01:00
2024-11-02 13:01:50 +00:00
meta = {
2023-01-25 14:35:42 +00:00
description = "Distributed service for announcement and discovery of services";
homepage = "https://github.com/skynetservices/skydns";
2021-01-15 07:07:56 +00:00
license = lib.licenses.mit;
maintainers = [ ];
2023-11-23 21:09:35 +00:00
mainProgram = "skydns";
2024-11-02 13:01:50 +00:00
# link: golang.org/x/net/internal/socket: invalid reference to syscall.recvmsg
broken = stdenv.hostPlatform.isDarwin;
2018-08-04 17:34:51 +01:00
};
2016-06-03 17:17:43 +01:00
}