94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
43 lines
1.4 KiB
Nix
43 lines
1.4 KiB
Nix
{ lib, stdenv, fetchFromGitHub, openssl, testers, smartdns }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "smartdns";
|
|
version = "42";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pymumu";
|
|
repo = pname;
|
|
rev = "Release${version}";
|
|
hash = "sha256-FVHOjW5SEShxTPPd4IuEfPV6vvqr0RepV976eJmxqwM=";
|
|
};
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
makeFlags = [
|
|
"PREFIX=${placeholder "out"}"
|
|
"SYSTEMDSYSTEMUNITDIR=${placeholder "out"}/lib/systemd/system"
|
|
"RUNSTATEDIR=/run"
|
|
# by default it is the build time... weird... https://github.com/pymumu/smartdns/search?q=ver
|
|
"VER=${version}"
|
|
];
|
|
|
|
installFlags = [ "SYSCONFDIR=${placeholder "out"}/etc" ];
|
|
|
|
passthru.tests = {
|
|
version = testers.testVersion { package = smartdns; };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description =
|
|
"A local DNS server to obtain the fastest website IP for the best Internet experience";
|
|
longDescription = ''
|
|
SmartDNS is a local DNS server. SmartDNS accepts DNS query requests from local clients, obtains DNS query results from multiple upstream DNS servers, and returns the fastest access results to clients.
|
|
Avoiding DNS pollution and improving network access speed, supports high-performance ad filtering.
|
|
Unlike dnsmasq's all-servers, smartdns returns the fastest access resolution.
|
|
'';
|
|
homepage = "https://github.com/pymumu/smartdns";
|
|
maintainers = [ maintainers.lexuge ];
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|