nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDotnetModule,
4 fetchFromGitHub,
5 dotnetCorePackages,
6 nix-update-script,
7}:
8buildDotnetModule rec {
9 pname = "technitium-dns-server-library";
10 version = "dns-server-v13.6.0";
11
12 src = fetchFromGitHub {
13 owner = "TechnitiumSoftware";
14 repo = "TechnitiumLibrary";
15 tag = version;
16 hash = "sha256-P1LVn//4xL/MZoy7thw+zYlAZVTfjSivyAiuhixAoHs=";
17 name = "${pname}-${version}";
18 };
19
20 dotnet-sdk = dotnetCorePackages.sdk_8_0;
21
22 nugetDeps = ./nuget-deps.json;
23
24 projectFile = [
25 "TechnitiumLibrary.ByteTree/TechnitiumLibrary.ByteTree.csproj"
26 "TechnitiumLibrary.Net/TechnitiumLibrary.Net.csproj"
27 ];
28
29 passthru.updateScript = nix-update-script { };
30
31 meta = {
32 changelog = "https://github.com/TechnitiumSoftware/DnsServer/blob/master/CHANGELOG.md";
33 description = "Library for Authorative and Recursive DNS server for Privacy and Security";
34 homepage = "https://github.com/TechnitiumSoftware/DnsServer";
35 license = lib.licenses.gpl3Only;
36 mainProgram = "technitium-dns-server-library";
37 maintainers = with lib.maintainers; [ fabianrig ];
38 platforms = lib.platforms.linux;
39 };
40}