2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "routedns";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.1.20";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "folbricht";
|
|
|
|
repo = "routedns";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-whMSqGsZTr6tj9jbUzkNanR69xfmvXC257DsHooqlkE=";
|
2022-06-26 10:26:21 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
vendorHash = "sha256-XqrV/eBpKzFgNSG9yoP8iqzIEifXEMOCCfPbHo3YKZw=";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
subPackages = [ "./cmd/routedns" ];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/folbricht/routedns";
|
|
|
|
description = "DNS stub resolver, proxy and router";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ jsimonetti ];
|
|
|
|
};
|
|
|
|
}
|