{
lib,
stdenv,
fetchFromGitHub,
zig_0_10,
}:
stdenv.mkDerivation rec {
pname = "chinadns-ng";
version = "2024.12.22";
src = fetchFromGitHub {
owner = "zfl9";
repo = "chinadns-ng";
rev = version;
hash = "sha256-oV0sdlVBG/d0eVdHdvruAH9ketsWOsois6Uw/dCEMkA=";
};
nativeBuildInputs = [ zig_0_10.hook ];
meta = {
description = "Chinadns 重构增强版,支持域名分流、ipset/nftset、UDP/TCP/DoT";
homepage = "https://github.com/zfl9/chinadns-ng";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ zxc ];
mainProgram = "chinadns-ng";
inherit (zig_0_10.meta) platforms;
};
}
error: Invalid option: -Drelease-safe